


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    ,							__lowerCAmelCase     ):

       def     UpperCAmelCase( self   :  Tuple     ):
            a_     :  Tuple				      =     load_tool("""speech-to-text"""     )
            self.tool.setup()

       def     UpperCAmelCase( self   :  Optional[int]     ):
            a_     :  int				      =     self.tool(torch.ones(3_0_0_0     )     )
            self.assertEqual(__UpperCamelCase   ,				""" you"""     )

       def     UpperCAmelCase( self   :  Optional[int]     ):
            a_     :  Optional[Any]				      =     self.tool(audio=torch.ones(3_0_0_0     )     )
            self.assertEqual(__UpperCamelCase   ,				""" you"""     )









'''simple docstring'''

import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


a__         =     logging.get_logger(__name__)





class __magic_name__(						__lowerCAmelCase      ):






						def __init__(   self						:						Optional[Any]					,   *__UpperCamelCase						:						Union[str, Any]					,   **__UpperCamelCase						:						Dict       ):



									'''simple docstring'''






									warnings.warn(
									    """The class LevitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
									    """ use LevitImageProcessor instead."""					,   __UpperCamelCase					,   )
									super().__init__(*__UpperCamelCase					,   **__UpperCamelCase       )