






import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin





class     SCREAMING_SNAKE_CASE					(			unittest.TestCase	,						a_       ):





							"""simple docstring"""

							def    __A			(	self: Optional[Any] )     ->					str:
												_A										=			load_tool('''text-classification''' )
												self.tool.setup()
												_A										=			load_tool('''text-classification'''		,  remote=lowercase_ )

							def    __A			(	self: List[Any] )     ->					List[Any]:
												_A										=			self.tool('''That\'s quite cool'''		,  ['''positive''', '''negative'''] )
												self.assertEqual(lowercase_		,  '''positive''' )

							def    __A			(	self: Union[str, Any] )     ->					List[Any]:
												_A										=			self.remote_tool('''That\'s quite cool'''		,  ['''positive''', '''negative'''] )
												self.assertEqual(lowercase_		,  '''positive''' )

							def    __A			(	self: Optional[int] )     ->					str:
												_A										=			self.tool(text='''That\'s quite cool'''		,  labels=['''positive''', '''negative'''] )
												self.assertEqual(lowercase_		,  '''positive''' )



							def    __A			(	self: List[str] )     ->					Optional[Any]:
												_A										=			self.remote_tool(text='''That\'s quite cool'''		,  labels=['''positive''', '''negative'''] )
												self.assertEqual(lowercase_		,  '''positive''' )






"""simple docstring"""





def     __SCREAMING_SNAKE_CASE    ( A_					):
	lowerCAmelCase__      :		Any    							=      int(A_					)
	if decimal in (0, 1):  # Exit cases for the recursion
		return str(A_					)
	lowerCAmelCase__							,lowerCAmelCase__      :		Any    							=      divmod(A_		,	2					)
	return binary_recursive(A_					) + str(A_					)

def     __SCREAMING_SNAKE_CASE    ( A_					):
	lowerCAmelCase__      :		Union[str, Any]    							=      str(A_					).strip()
	if not number:
		raise ValueError('''No input value was provided'''					)
	lowerCAmelCase__      :		Any    							=      '''-''' if number.startswith('''-'''					) else ''''''
	lowerCAmelCase__      :		Dict    							=      number.lstrip('''-'''					)
	if not number.isnumeric():
		raise ValueError('''Input value is not an integer'''					)
	return f'{negative}0b{binary_recursive(int(A_					)					)}'


if __name__ == "__main__":
							from doctest import testmod

							testmod()




