import warnings

from ..trainer import Trainer
from ..utils import logging


__a      :       Optional[Any]				  =   logging.get_logger(__name__)


class       __lowercase      (	_UpperCAmelCase  ):







     '''simple docstring'''




     def __init__(				self       :			Dict ,	UpperCamelCase_       :			str=None ,	**UpperCamelCase_       :			Dict				):


         """simple docstring"""



         warnings.warn(
             """`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` """
             """instead.""" ,	A_ ,	)
         super().__init__(args=A_ ,	**A_				)












def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			List[Any]			,				__lowercase   :			Dict			,				__lowercase   :			str    )						->      Dict:





    """simple docstring"""

    if n == 0:
        return 1

    elif n % 2 == 1:
        return (binary_exponentiation(__lowercase			,				n - 1			,				__lowercase    ) * a) % mod

    else:
        __A         =	binary_exponentiation(__lowercase			,				n / 2			,				__lowercase    )
        return (b * b) % mod


# a prime number
__a      :       Union[str, Any]				  =   701

__a      :       Dict				  =   1000000000
__a      :       Union[str, Any]				  =   10

# using binary exponentiation function, O(log(p)):
print((a / b) % p == (a * binary_exponentiation(b, p - 2, p)) % p)






print((a / b) % p == (a * b ** (p - 2)) % p)




