





from .imports import is_tqdm_available


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

from ..state import PartialState






def 		lowerCAmelCase  (	UpperCamelCase__   :   bool = True       ,			*UpperCamelCase__   :   int       ,			**UpperCamelCase__   :   Optional[Any]					)      ->    Optional[int]:

						"""simple docstring"""





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










import re






def 		lowerCAmelCase  (	UpperCamelCase__   :   str					)      ->    bool:

						"""simple docstring"""





						__SCREAMING_SNAKE_CASE:				Optional[int]           =   re.compile(
						    R'''^(?:0|94|\+94|0{2}94)''' R'''7(0|1|2|4|5|6|7|8)''' R'''(-| |)''' R'''\d{7}$'''					)

						return bool(re.search(UpperCamelCase__       ,			UpperCamelCase__					)					)


if __name__ == "__main__":
							lowerCAmelCase							:       str					 =	"""0094702343221"""

							print(is_sri_lankan_phone_number(phone))



