


'''simple docstring'''

def __UpperCamelCase   (			__lowerCamelCase		: int      ,  __lowerCamelCase		: int				)      ->     int:







     '''simple docstring'''






     while a != 0:
          _a			,			_a						=		b % a, a
     return b






def __UpperCamelCase   (			__lowerCamelCase		: int      ,  __lowerCamelCase		: int				)      ->     int:







     '''simple docstring'''






     if gcd(__lowerCamelCase      ,  __lowerCamelCase				) != 1:
          _a						=		F"mod inverse of {a!r} and {m!r} does not exist"
          raise ValueError(__lowerCamelCase				)
     _a			,			_a			,			_a						=		1, 0, a
     _a			,			_a			,			_a						=		0, 1, m
     while va != 0:
          _a						=		ua // va
          _a			,			_a			,			_a			,			_a			,			_a			,			_a						=		(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
     return ua % m





'''simple docstring'''

import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin





class 						__SCREAMING_SNAKE_CASE					(      unittest.TestCase ,			lowerCamelCase__ ):






     def  a_					(			self		)       ->    Tuple:
          _a						=		load_tool("text-classification"		)
          self.tool.setup()
          _a						=		load_tool("text-classification"     ,							remote=__UpperCamelCase		)






     def  a_					(			self		)       ->    Optional[int]:
          _a						=		self.tool("That's quite cool"     ,							["positive", "negative"]		)
          self.assertEqual(__UpperCamelCase     ,							"positive"		)






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






     def  a_					(			self		)       ->    Optional[int]:
          _a						=		self.tool(text="That's quite cool"     ,							labels=["positive", "negative"]		)
          self.assertEqual(__UpperCamelCase     ,							"positive"		)






     def  a_					(			self		)       ->    str:
          _a						=		self.remote_tool(text="That's quite cool"     ,							labels=["positive", "negative"]		)
          self.assertEqual(__UpperCamelCase     ,							"positive"		)

