




'''simple docstring'''







from transformers import PretrainedConfig


class       _a  (     __a			):
       __a    :					Any           = """custom"""
       def __init__(     self						:     List[Any]       ,    lowercase						:     str=1       ,    **lowercase						:     Optional[Any]    ):



           '''simple docstring'''

           UpperCAmelCase      	=		attribute
           super().__init__(**lowercase    )






class       _a  (     __a			):
       __a    :					Union[str, Any]           = """custom"""
       def __init__(     self						:     List[Any]       ,    lowercase						:     Any=1       ,    **lowercase						:     Optional[int]    ):



           '''simple docstring'''

           UpperCAmelCase      	=		attribute










'''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       _a  (     unittest.TestCase							,							__a			):
       def    A				(     self						:     str    ):



           '''simple docstring'''

           UpperCAmelCase      	=		load_tool('''speech-to-text'''    )
           self.tool.setup()
       def    A				(     self						:     Dict    ):



           '''simple docstring'''

           UpperCAmelCase      	=		self.tool(torch.ones(3_000    )    )
           self.assertEqual(lowercase       ,    ''' you'''    )







       def    A				(     self						:     Dict    ):



           '''simple docstring'''

           UpperCAmelCase      	=		self.tool(audio=torch.ones(3_000    )    )
           self.assertEqual(lowercase       ,    ''' you'''    )




