import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin




class  __magic_name__  (		unittest.TestCase      ,	__a    ):





   """simple docstring"""




   def   lowerCAmelCase						(	self					:  Union[str, Any]							):



    """simple docstring"""



    _UpperCamelCase:     str							= load_tool('''text-classification'''							)
    self.tool.setup()
    _UpperCamelCase:     Optional[Any]							= load_tool('''text-classification'''		,  remote=_lowercase							)



   def   lowerCAmelCase						(	self					:  Any							):



    """simple docstring"""



    _UpperCamelCase:     Dict							= self.tool('''That\'s quite cool'''		,  ['''positive''', '''negative''']							)
    self.assertEqual(_lowercase		,  '''positive'''							)



   def   lowerCAmelCase						(	self					:  List[str]							):



    """simple docstring"""



    _UpperCamelCase:     Optional[int]							= self.remote_tool('''That\'s quite cool'''		,  ['''positive''', '''negative''']							)
    self.assertEqual(_lowercase		,  '''positive'''							)



   def   lowerCAmelCase						(	self					:  int							):



    """simple docstring"""



    _UpperCamelCase:     Union[str, Any]							= self.tool(text='''That\'s quite cool'''		,  labels=['''positive''', '''negative''']							)
    self.assertEqual(_lowercase		,  '''positive'''							)



   def   lowerCAmelCase						(	self					:  Dict							):



    """simple docstring"""



    _UpperCamelCase:     int							= self.remote_tool(text='''That\'s quite cool'''		,  labels=['''positive''', '''negative''']							)
    self.assertEqual(_lowercase		,  '''positive'''							)
def       lowerCAmelCase_     (		lowercase:							float		)    ->				float:







 '''simple docstring'''

 if edge <= 0 or not isinstance(lowercase  ,					lowercase		):
  raise ValueError('''Length must be a positive.'''		)
 return 3 * ((25 + 10 * (5 ** (1 / 2))) ** (1 / 2)) * (edge**2)




def       lowerCAmelCase_     (		lowercase:							float		)    ->				float:







 '''simple docstring'''

 if edge <= 0 or not isinstance(lowercase  ,					lowercase		):
  raise ValueError('''Length must be a positive.'''		)
 return ((15 + (7 * (5 ** (1 / 2)))) / 4) * (edge**3)


if __name__ == "__main__":
  import doctest

  doctest.testmod()