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




 def   a      ( self       : List[Any] )->					Any:



      """simple docstring"""

      UpperCAmelCase_						:    int    					=  load_tool("""speech-to-text""" )
      self.tool.setup()




 def   a      ( self       : Tuple )->					str:



      """simple docstring"""

      UpperCAmelCase_						:    Optional[Any]    					=  self.tool(torch.ones(30_00 ) )
      self.assertEqual(a_     ,   """ you""" )






 def   a      ( self       : Union[str, Any] )->					List[str]:



      """simple docstring"""

      UpperCAmelCase_						:    Tuple    					=  self.tool(audio=torch.ones(30_00 ) )
      self.assertEqual(a_     ,   """ you""" )



"""simple docstring"""







import warnings

from .generation import FlaxGenerationMixin



class 		UpperCAmelCase_	(lowerCamelCase_						):
 """simple docstring"""




 warnings.warn(
     """Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will """
     """be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."""  , lowerCamelCase_  , )

