




'''simple docstring'''





import baseaa


def 					UpperCamelCase_(     snake_case							:	str					):

							'''simple docstring'''






							return baseaa.baaencode(string.encode("utf-8"					)					)


def 					UpperCamelCase_(     snake_case							:	bytes					):

							'''simple docstring'''






							return baseaa.baadecode(snake_case					).decode("utf-8"					)


if __name__ == "__main__":
		_SCREAMING_SNAKE_CASE							:       Tuple						=			"Hello World!"
		_SCREAMING_SNAKE_CASE							:       Union[str, Any]						=			baseaa_encode(test)
		print(encoded)

		_SCREAMING_SNAKE_CASE							:       Tuple						=			baseaa_decode(encoded)
		print(decoded)










'''simple docstring'''





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin




class 			_snake_case		(     unittest.TestCase						,						lowercase_							):




			def        lowerCAmelCase__    ( self							)    ->    Optional[int]:

										'''simple docstring'''




										snake_case_      =				load_tool("text-classification"							)
										self.tool.setup()
										snake_case_      =				load_tool("text-classification"    ,							remote=a__							)




			def        lowerCAmelCase__    ( self							)    ->    str:

										'''simple docstring'''




										snake_case_      =				self.tool("That's quite cool"    ,							["positive", "negative"]							)
										self.assertEqual(a__    ,							"positive"							)




			def        lowerCAmelCase__    ( self							)    ->    Optional[int]:

										'''simple docstring'''




										snake_case_      =				self.remote_tool("That's quite cool"    ,							["positive", "negative"]							)
										self.assertEqual(a__    ,							"positive"							)




			def        lowerCAmelCase__    ( self							)    ->    int:

										'''simple docstring'''




										snake_case_      =				self.tool(text="That's quite cool"    ,							labels=["positive", "negative"]							)
										self.assertEqual(a__    ,							"positive"							)




			def        lowerCAmelCase__    ( self							)    ->    Any:

										'''simple docstring'''




										snake_case_      =				self.remote_tool(text="That's quite cool"    ,							labels=["positive", "negative"]							)
										self.assertEqual(a__    ,							"positive"							)




