


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    ,      _UpperCAmelCase			):
		def 	UpperCAmelCase__				(			self						) ->       Any:




									"""simple docstring"""





									_UpperCAmelCase 		=			load_tool('text-to-speech'						)
									self.tool.setup()
		def 	UpperCAmelCase__				(			self						) ->       Tuple:




									"""simple docstring"""





									torch.manual_seed(0						)
									_UpperCAmelCase 		=			self.tool('hey'						)
									_UpperCAmelCase 		=			result.to_raw()
									self.assertTrue(
									    torch.allclose(
									        resulting_tensor[:3]			,    torch.tensor([-0.0005966668832115829, -0.0003657640190795064, -0.00013439502799883485]						)			,    )						)






		def 	UpperCAmelCase__				(			self						) ->       Optional[int]:




									"""simple docstring"""





									torch.manual_seed(0						)
									_UpperCAmelCase 		=			self.tool('hey'						)
									_UpperCAmelCase 		=			result.to_raw()
									self.assertTrue(
									    torch.allclose(
									        resulting_tensor[:3]			,    torch.tensor([-0.0005966668832115829, -0.0003657640190795064, -0.00013439502799883485]						)			,    )						)


def 							_lowercase							(     )		->		Optional[int]:
					'''simple docstring'''


					SCREAMING_SNAKE_CASE__													= []
					SCREAMING_SNAKE_CASE__													= 1

					while len(UpperCamelCase_		) < 1e6:
										constant.append(str(UpperCamelCase_		)		)
										i += 1

					SCREAMING_SNAKE_CASE__													= ''.join(UpperCamelCase_		)

					return (
					    int(constant[0]		)
					    * int(constant[9]		)
					    * int(constant[99]		)
					    * int(constant[999]		)
					    * int(constant[9999]		)
					    * int(constant[99999]		)
					    * int(constant[999999]		)
					)


if __name__ == "__main__":
				print(solution())





