





import warnings

from ...utils import logging
from .image_processing_mobilenet_va import MobileNetVaImageProcessor


_lowerCamelCase       =	logging.get_logger(__name__)




class      UpperCamelCase_				(   UpperCamelCase__			):


							def __init__(							self			:Dict							, *__A			:Optional[Any]							, **__A			:Any						)      ->      None:



									"""simple docstring"""



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






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


							def    _snake_case     (							self			:Dict						)      ->      Union[str, Any]:



									"""simple docstring"""



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


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



									"""simple docstring"""



									SCREAMING_SNAKE_CASE__								=					self.tool(torch.ones(3000						)						)
									self.assertEqual(__A							, """ you"""						)


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



									"""simple docstring"""



									SCREAMING_SNAKE_CASE__								=					self.tool(audio=torch.ones(3000						)						)
									self.assertEqual(__A							, """ you"""						)