"""simple docstring"""
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    __snake_case       (     unittest.TestCase       ,      __lowerCAmelCase				):



      def   lowerCamelCase_   (						self)	->			Optional[Any]:





        '''simple docstring'''





        a__:     Dict										=	load_tool('text-to-speech')
        self.tool.setup()



      def   lowerCamelCase_   (						self)	->			Tuple:





        '''simple docstring'''





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



      def   lowerCamelCase_   (						self)	->			List[str]:





        '''simple docstring'''





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



"""simple docstring"""
def 						__a   (	_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   )	->Union[str, Any]:
  if height >= 1:
    move_tower(height - 1		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   )
    move_disk(_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   )
    move_tower(height - 1		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   )







def 						__a   (	_SCREAMING_SNAKE_CASE		,     _SCREAMING_SNAKE_CASE   )	->Union[str, Any]:
  print('moving disk from'		,     _SCREAMING_SNAKE_CASE		,     'to'		,     _SCREAMING_SNAKE_CASE   )







def 						__a   (	)	->List[str]:
  a__:     Dict										=	int(input('Height of hanoi: '   ).strip()   )
  move_tower(_SCREAMING_SNAKE_CASE		,     'A'		,     'B'		,     'C'   )


if __name__ == "__main__":
 main()


