






"""simple docstring"""



import warnings

from ...utils import logging
from .image_processing_conditional_detr import ConditionalDetrImageProcessor


_lowerCAmelCase     :     Optional[Any]            =	logging.get_logger(__name__)




class        lowerCAmelCase__       (  __a					):
   def __init__(						self	:     Optional[Any]				,       *snake_case__	:     str				,       **snake_case__	:     Dict				):


        '''simple docstring'''
        warnings.warn(
            "The class ConditionalDetrFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
            " Please use ConditionalDetrImageProcessor instead."				,       lowerCAmelCase__				,       )
        super().__init__(*lowerCAmelCase__				,       **lowerCAmelCase__				)




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



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



     def     snake_case_ (self	):
          _UpperCAmelCase					:  str         =    self.tool(torch.ones(3_0_0_0	)	)
          self.assertEqual(lowerCAmelCase__						,	""" you"""	)



     def     snake_case_ (self	):
          _UpperCAmelCase					:  Union[str, Any]         =    self.tool(audio=torch.ones(3_0_0_0	)	)
          self.assertEqual(lowerCAmelCase__						,	""" you"""	)


