




import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin







class 						lowercase							(   unittest.TestCase,UpperCamelCase__		):

     def 					a__	(  self				)						->							Union[str, Any]:
           _A							:     Union[str, Any]			=						load_tool("""text-classification"""				)
           self.tool.setup()
           _A							:     Optional[Any]			=						load_tool("""text-classification"""		,     remote=_a				)

     def 					a__	(  self				)						->							str:
           _A							:     str			=						self.tool("""That's quite cool"""		,     ["""positive""", """negative"""]				)
           self.assertEqual(_a		,     """positive"""				)

     def 					a__	(  self				)						->							Union[str, Any]:
           _A							:     Tuple			=						self.remote_tool("""That's quite cool"""		,     ["""positive""", """negative"""]				)
           self.assertEqual(_a		,     """positive"""				)

     def 					a__	(  self				)						->							Optional[Any]:
           _A							:     Union[str, Any]			=						self.tool(text="""That's quite cool"""		,     labels=["""positive""", """negative"""]				)
           self.assertEqual(_a		,     """positive"""				)



     def 					a__	(  self				)						->							Dict:
           _A							:     List[Any]			=						self.remote_tool(text="""That's quite cool"""		,     labels=["""positive""", """negative"""]				)
           self.assertEqual(_a		,     """positive"""				)








'''simple docstring'''







def  _lowerCamelCase				( lowercase						:      int						)	->	bool:
				if num < 0:
								return False

				_a								= num
				_a								= 0
				while num > 0:
								_a								= rev_num * 10 + (num % 10)
								num //= 10

				return num_copy == rev_num


if __name__ == "__main__":
					import doctest

					doctest.testmod()
