





from ..utils import DummyObject, requires_backends





class 			lowerCAmelCase__( metaclass=__lowercase    ):






       '''simple docstring'''


       __snake_case 			=    ['flax', 'transformers']




       def __init__(      self    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Optional[Any]:
            requires_backends(self    ,						["flax", "transformers"]							)




       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     List[str]:
            requires_backends(cls    ,						["flax", "transformers"]							)







       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Dict:
            requires_backends(cls    ,						["flax", "transformers"]							)





class 			lowerCAmelCase__( metaclass=__lowercase    ):






       '''simple docstring'''


       __snake_case 			=    ['flax', 'transformers']




       def __init__(      self    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     List[str]:
            requires_backends(self    ,						["flax", "transformers"]							)




       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     List[str]:
            requires_backends(cls    ,						["flax", "transformers"]							)







       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Dict:
            requires_backends(cls    ,						["flax", "transformers"]							)





class 			lowerCAmelCase__( metaclass=__lowercase    ):






       '''simple docstring'''


       __snake_case 			=    ['flax', 'transformers']




       def __init__(      self    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Any:
            requires_backends(self    ,						["flax", "transformers"]							)




       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Dict:
            requires_backends(cls    ,						["flax", "transformers"]							)







       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Dict:
            requires_backends(cls    ,						["flax", "transformers"]							)





class 			lowerCAmelCase__( metaclass=__lowercase    ):






       '''simple docstring'''


       __snake_case 			=    ['flax', 'transformers']




       def __init__(      self    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Tuple:
            requires_backends(self    ,						["flax", "transformers"]							)




       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     Optional[Any]:
            requires_backends(cls    ,						["flax", "transformers"]							)







       @classmethod
       def     UpperCamelCase_			(      cls    ,						*__lowerCamelCase    ,						**__lowerCamelCase							)			->     str:
            requires_backends(cls    ,						["flax", "transformers"]							)






def     lowerCamelCase__			(__lowerCamelCase,       __lowerCamelCase	):
     while a != 0:
          _SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE       :	Any						    =							b % a, a
     return b






def     lowerCamelCase__			(__lowerCamelCase,       __lowerCamelCase	):
     if gcd(__lowerCamelCase,       __lowerCamelCase	) != 1:
          _SCREAMING_SNAKE_CASE       :	int						    =							f"""mod inverse of {a!r} and {m!r} does not exist"""
          raise ValueError(__lowerCamelCase	)
     _SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE       :	List[str]						    =							1, 0, a
     _SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE       :	List[str]						    =							0, 1, m
     while va != 0:
          _SCREAMING_SNAKE_CASE       :	Union[str, Any]						    =							ua // va
          _SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE    ,			_SCREAMING_SNAKE_CASE       :	Union[str, Any]						    =							(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
     return ua % m