



import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin







class       __lowerCAmelCase   (      unittest.TestCase    ,						A						):



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



						"""simple docstring"""






						_UpperCAmelCase			=       load_tool('text-classification')
						self.tool.setup()
						_UpperCAmelCase			=       load_tool('text-classification'			,		remote=A)



			def    _lowerCamelCase	(						self       :  Optional[int])       ->   Optional[int]:



						"""simple docstring"""






						_UpperCAmelCase			=       self.tool('That\'s quite cool'			,		['positive', 'negative'])
						self.assertEqual(A			,		'positive')



			def    _lowerCamelCase	(						self       :  List[str])       ->   Dict:



						"""simple docstring"""






						_UpperCAmelCase			=       self.remote_tool('That\'s quite cool'			,		['positive', 'negative'])
						self.assertEqual(A			,		'positive')



			def    _lowerCamelCase	(						self       :  Any)       ->   str:



						"""simple docstring"""






						_UpperCAmelCase			=       self.tool(text='That\'s quite cool'			,		labels=['positive', 'negative'])
						self.assertEqual(A			,		'positive')



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



						"""simple docstring"""






						_UpperCAmelCase			=       self.remote_tool(text='That\'s quite cool'			,		labels=['positive', 'negative'])
						self.assertEqual(A			,		'positive')





from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCAmelCase__       =	{"tokenization_bertweet": ["BertweetTokenizer"]}


if TYPE_CHECKING:
							from .tokenization_bertweet import BertweetTokenizer

else:
							import sys

							UpperCAmelCase__       =	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
