import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
			import torch

class 						_SCREAMING_SNAKE_CASE				(  unittest.TestCase   ,  _SCREAMING_SNAKE_CASE				):






		"""simple docstring"""







		def 					_a					(      self     :					Tuple ):






					"""simple docstring"""
					_snake_case														=   load_tool("speech-to-text" )
					self.tool.setup()



		def 					_a					(      self     :					int ):






					"""simple docstring"""
					_snake_case														=   self.tool(torch.ones(3_000 ) )
					self.assertEqual(__SCREAMING_SNAKE_CASE	,       " you" )







		def 					_a					(      self     :					List[Any] ):






					"""simple docstring"""
					_snake_case														=   self.tool(audio=torch.ones(3_000 ) )
					self.assertEqual(__SCREAMING_SNAKE_CASE	,       " you" )



'''simple docstring'''
import warnings

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


A__ :		Optional[int]					=logging.get_logger(__name__)







class 			__A					(			_SCREAMING_SNAKE_CASE      ):
 def __init__( self      :     Union[str, Any]					, *lowerCamelCase      :     Dict					, **lowerCamelCase      :     Optional[Any]							):



   """simple docstring"""





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



