






'''simple docstring'''
import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


class 							_UpperCAmelCase    (		unittest.TestCase					,       snake_case      ):




    def 					lowerCAmelCase__					(      self	:							Optional[int]      ):






       '''simple docstring'''






       lowercase_						:     Any							     =  load_tool("text-classification"      )
       self.tool.setup()
       lowercase_						:     List[Any]							     =  load_tool("text-classification"	,  remote=a      )




    def 					lowerCAmelCase__					(      self	:							Optional[int]      ):






       '''simple docstring'''






       lowercase_						:     Union[str, Any]							     =  self.tool("That's quite cool"	,  ["positive", "negative"]      )
       self.assertEqual(a	,  "positive"      )




    def 					lowerCAmelCase__					(      self	:							str      ):






       '''simple docstring'''






       lowercase_						:     Any							     =  self.remote_tool("That's quite cool"	,  ["positive", "negative"]      )
       self.assertEqual(a	,  "positive"      )




    def 					lowerCAmelCase__					(      self	:							List[str]      ):






       '''simple docstring'''






       lowercase_						:     str							     =  self.tool(text="That's quite cool"	,  labels=["positive", "negative"]      )
       self.assertEqual(a	,  "positive"      )





    def 					lowerCAmelCase__					(      self	:							Any      ):






       '''simple docstring'''






       lowercase_						:     List[Any]							     =  self.remote_tool(text="That's quite cool"	,  labels=["positive", "negative"]      )
       self.assertEqual(a	,  "positive"      )












'''simple docstring'''
from __future__ import annotations




def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase				):


   """simple docstring"""




   lowercase_						:     Optional[int]							     =  2
   lowercase_						:     Tuple							     =  []
   while i * i <= n:
      if n % i:
         i += 1
      else:
         n //= i
         factors.append(_UpperCamelCase				)
   if n > 1:
      factors.append(_UpperCamelCase				)
   return factors


if __name__ == "__main__":
 import doctest

 doctest.testmod()




