



import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin



class 				__snake_case						(     unittest.TestCase						,UpperCamelCase_						):




							def    UpperCAmelCase__			(       self     :       int):
									lowerCAmelCase_			:     int									= load_tool('''text-classification''')
									self.tool.setup()
									lowerCAmelCase_			:     Optional[int]									= load_tool('''text-classification'''				,				remote=A_)




							def    UpperCAmelCase__			(       self     :       Optional[int]):
									lowerCAmelCase_			:     Dict									= self.tool('''That\'s quite cool'''				,				['''positive''', '''negative'''])
									self.assertEqual(A_				,				'''positive''')




							def    UpperCAmelCase__			(       self     :       Tuple):
									lowerCAmelCase_			:     Dict									= self.remote_tool('''That\'s quite cool'''				,				['''positive''', '''negative'''])
									self.assertEqual(A_				,				'''positive''')




							def    UpperCAmelCase__			(       self     :       Union[str, Any]):
									lowerCAmelCase_			:     str									= self.tool(text='''That\'s quite cool'''				,				labels=['''positive''', '''negative'''])
									self.assertEqual(A_				,				'''positive''')







							def    UpperCAmelCase__			(       self     :       int):
									lowerCAmelCase_			:     Union[str, Any]									= self.remote_tool(text='''That\'s quite cool'''				,				labels=['''positive''', '''negative'''])
									self.assertEqual(A_				,				'''positive''')








import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


snake_case_			  = logging.get_logger(__name__)


class       SCREAMING_SNAKE_CASE__					(__snake_case     ):





    def __init__(      self						,   *a						,   **a):
         warnings.warn(
             'The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
             ' use DPTImageProcessor instead.'						,   a						,   )
         super().__init__(*a						,   **a)

