




from .imports import is_tqdm_available


if is_tqdm_available():
		from tqdm.auto import tqdm as _tqdm

from ..state import PartialState




def     __magic_name__       (				A	:      bool = True,						*A	:      int,						**A	:      List[Any]     ):






			'''simple docstring'''







			if not is_tqdm_available():
						raise ImportError("Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."     )
			a					=    False
			if main_process_only:
						a					=    PartialState().local_process_index == 0
			return _tqdm(*A,						**A,						disable=A     )












def     __magic_name__       (				A	:      int,						A	:      int,						A	:      int     ):






			'''simple docstring'''







			if exponent == 1:
						return base
			if exponent % 2 == 0:
						a					=    _modexpt(A,						exponent // 2,						A     ) % modulo_value
						return (x * x) % modulo_value
			else:
						return (base * _modexpt(A,						exponent - 1,						A     )) % modulo_value




def     __magic_name__       (				A	:      int = 1777,						A	:      int = 1855,						A	:      int = 8     ):






			'''simple docstring'''







			a					=    base
			for _ in range(1,						A     ):
						a					=    _modexpt(A,						A,						10**digits     )

			return result


if __name__ == "__main__":
		print(F'''{solution() = }''')






