


"""simple docstring"""



import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
 import torch
class     __magic_name__						(	unittest.TestCase	,  __UpperCAmelCase   ):






       def        __snake_case  (      self     :			List[Any] ):

              '''simple docstring'''






              lowercase						:List[Any]											= load_tool('''speech-to-text''' )
              self.tool.setup()






       def        __snake_case  (      self     :			Optional[Any] ):

              '''simple docstring'''






              lowercase						:int											= self.tool(torch.ones(3_0_0_0 ) )
              self.assertEqual(__lowercase     ,   ''' you''' )







       def        __snake_case  (      self     :			int ):

              '''simple docstring'''






              lowercase						:int											= self.tool(audio=torch.ones(3_0_0_0 ) )
              self.assertEqual(__lowercase     ,   ''' you''' )







def 					snake_case					(							A			)							->							int:




	'''simple docstring'''


	if not isinstance(A						,   A			):
		raise ValueError('double_factorial() only accepts integral values'			)
	if n < 0:
		raise ValueError('double_factorial() not defined for negative values'			)
	return 1 if n <= 1 else n * double_factorial(n - 2			)


if __name__ == "__main__":
							import doctest

							doctest.testmod()
