




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






						def       __lowerCAmelCase(   self						:						Tuple       ):



									'''simple docstring'''






									snake_case__          =						load_tool("""speech-to-text"""       )
									self.tool.setup()






						def       __lowerCAmelCase(   self						:						Optional[int]       ):



									'''simple docstring'''






									snake_case__          =						self.tool(torch.ones(3_0_0_0       )       )
									self.assertEqual(__UpperCamelCase					,   """ you"""       )







						def       __lowerCAmelCase(   self						:						Optional[int]       ):



									'''simple docstring'''






									snake_case__          =						self.tool(audio=torch.ones(3_0_0_0       )       )
									self.assertEqual(__UpperCamelCase					,   """ you"""       )





'''simple docstring'''

import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


a__         =     logging.get_logger(__name__)





class __magic_name__(						__lowerCAmelCase      ):






						def __init__(   self						:						List[str]					,   *__UpperCamelCase						:						Tuple					,   **__UpperCamelCase						:						Tuple       ):



									'''simple docstring'''






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