



'''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 			_lowercase							(     unittest.TestCase,   UpperCAmelCase_			):





	"""simple docstring"""




	def   UpperCamelCase_ (self	):
						"""simple docstring"""

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




	def   UpperCamelCase_ (self	):
						"""simple docstring"""

						a        =     self.tool(torch.ones(3000	)	)
						self.assertEqual(lowerCamelCase_	, " you"	)




	def   UpperCamelCase_ (self	):
						"""simple docstring"""

						a        =     self.tool(audio=torch.ones(3000	)	)
						self.assertEqual(lowerCamelCase_	, " you"	)





import warnings

from ...utils import logging
from .image_processing_detr import DetrImageProcessor


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



class 			_lowercase							(     lowerCAmelCase			):





	"""simple docstring"""




	def __init__(self	, *lowerCamelCase_	, **lowerCamelCase_	):
						"""simple docstring"""

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