



'''simple docstring'''






from __future__ import annotations

A_							: Optional[Any]						 =	1.6021e-19  # units = C




def     snake_case_					(     lowerCAmelCase_       ,   lowerCAmelCase_       ,   lowerCAmelCase_       ,   )->		tuple[str, float]:





       '''simple docstring'''


       if (conductivity, electron_conc, mobility).count(0		) != 1:
              raise ValueError("""You cannot supply more or less than 2 values"""		)
       elif conductivity < 0:
              raise ValueError("""Conductivity cannot be negative"""		)
       elif electron_conc < 0:
              raise ValueError("""Electron concentration cannot be negative"""		)
       elif mobility < 0:
              raise ValueError("""mobility cannot be negative"""		)
       elif conductivity == 0:
              return (
                  "conductivity",
                  mobility * electron_conc * ELECTRON_CHARGE,
              )
       elif electron_conc == 0:
              return (
                  "electron_conc",
                  conductivity / (mobility * ELECTRON_CHARGE),
              )
       else:
              return (
                  "mobility",
                  conductivity / (electron_conc * ELECTRON_CHARGE),
              )


if __name__ == "__main__":
   import doctest

   doctest.testmod()








'''simple docstring'''






import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin



class 							lowercase       (  unittest.TestCase					,					_lowerCamelCase				):


 """simple docstring"""


 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						int			     = load_tool("""text-classification"""							)
        self.tool.setup()
        _UpperCAmelCase  :						Tuple			     = load_tool("""text-classification"""  ,remote=a_							)







 def _snake_case (							self							)		->   Union[str, Any]:
        _UpperCAmelCase  :						Tuple			     = self.tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						Dict			     = self.remote_tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   str:
        _UpperCAmelCase  :						List[Any]			     = self.tool(text="""That's quite cool"""  ,labels=["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







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



