


import unittest

from transformers import load_tool
from transformers.utils import is_torch_available


if is_torch_available():
			import torch

from transformers.testing_utils import require_torch

from .test_tools_common import ToolTesterMixin

@require_torch
class     a		(unittest.TestCase					,    _lowerCAmelCase				):




							"""simple docstring"""


							def    __snake_case (							self	:  int    )     ->   Any:
														__snake_case		:      str										=       load_tool("text-to-speech"    )
														self.tool.setup()

							def    __snake_case (							self	:  Union[str, Any]    )     ->   List[str]:
														# SpeechT5 isn't deterministic
														torch.manual_seed(0    )
														__snake_case		:      Optional[Any]										=       self.tool("hey"    )
														__snake_case		:      Union[str, Any]										=       result.to_raw()
														self.assertTrue(
														    torch.allclose(
														        resulting_tensor[:3]   ,     torch.tensor([-0.0_00_59_66_66_88_32_11_58_29, -0.0_00_36_57_64_01_90_79_50_64, -0.00_01_34_39_50_27_99_88_34_85]    )   ,     )    )






							def    __snake_case (							self	:  int    )     ->   List[str]:
														# SpeechT5 isn't deterministic
														torch.manual_seed(0    )
														__snake_case		:      Tuple										=       self.tool("hey"    )
														__snake_case		:      Dict										=       result.to_raw()
														self.assertTrue(
														    torch.allclose(
														        resulting_tensor[:3]   ,     torch.tensor([-0.0_00_59_66_66_88_32_11_58_29, -0.0_00_36_57_64_01_90_79_50_64, -0.00_01_34_39_50_27_99_88_34_85]    )   ,     )    )





def     lowerCAmelCase_					( __lowerCamelCase							,     __lowerCamelCase     ):
							return x if y == 0 else greatest_common_divisor(__lowerCamelCase							,     x % y     )







def     lowerCAmelCase_					( __lowerCamelCase							,     __lowerCamelCase     ):
							return (x * y) // greatest_common_divisor(__lowerCamelCase							,     __lowerCamelCase     )







def     lowerCAmelCase_					( __lowerCamelCase = 2_0     ):
							__snake_case		:      Optional[Any]										=       1
							for i in range(1							,     n + 1     ):
														__snake_case		:      Any										=       lcm(__lowerCamelCase							,     __lowerCamelCase     )
							return g


if __name__ == "__main__":
			print(f'''{solution() = }''')

