





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin




class 			__UpperCamelCase    (							unittest.TestCase	, A__    ):





     def 		UpperCamelCase(     self					):
        _UpperCAmelCase           =   load_tool('''text-classification'''					)
        self.tool.setup()
        _UpperCAmelCase           =   load_tool('''text-classification'''				,							remote=_UpperCamelCase					)





     def 		UpperCamelCase(     self					):
        _UpperCAmelCase           =   self.tool('''That\'s quite cool'''				,							['''positive''', '''negative''']					)
        self.assertEqual(_UpperCamelCase				,							'''positive'''					)





     def 		UpperCamelCase(     self					):
        _UpperCAmelCase           =   self.remote_tool('''That\'s quite cool'''				,							['''positive''', '''negative''']					)
        self.assertEqual(_UpperCamelCase				,							'''positive'''					)





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





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






def      A__       (    SCREAMING_SNAKE_CASE_   :      int						)  ->  bool:






   """simple docstring"""







   if not isinstance(SCREAMING_SNAKE_CASE_				,	SCREAMING_SNAKE_CASE_						):
      _UpperCAmelCase           =   F'''Input value of [number={number}] must be an integer'''
      raise TypeError(SCREAMING_SNAKE_CASE_						)
   if number < 0:
      return False
   _UpperCAmelCase           =   number * number
   while number > 0:
      if number % 10 != number_square % 10:
         return False
      number //= 10
      number_square //= 10
   return True


if __name__ == "__main__":
   import doctest

   doctest.testmod()