




'''simple docstring'''




import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


class   __UpperCamelCase       ( unittest.TestCase			,					lowerCamelCase__				):






       def      lowercase__     (							self  ):



              """simple docstring"""







              lowerCamelCase_							=load_tool('''text-classification'''  )
              self.tool.setup()
              lowerCamelCase_							=load_tool('''text-classification''',		remote=lowerCAmelCase  )






       def      lowercase__     (							self  ):



              """simple docstring"""







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






       def      lowercase__     (							self  ):



              """simple docstring"""







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






       def      lowercase__     (							self  ):



              """simple docstring"""







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






       def      lowercase__     (							self  ):



              """simple docstring"""







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









'''simple docstring'''





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase     ,   _lowerCAmelCase		)		-> float:
      snake_case__  :    str    						=      (num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
      # formula for sum of series
      return total





def 						__snake_case(				)		-> List[str]:
      print(sum_of_series(1     ,   1     ,   10		)		)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
