






'''simple docstring'''



from .imports import is_tqdm_available


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

from ..state import PartialState


def 							lowercase_				(    __A :       bool = True					,      *__A :       Tuple					,      **__A :       Tuple			)       ->      str:



 """simple docstring"""




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











'''simple docstring'''



import re


def 							lowercase_				(    __A :       str			)       ->      bool:



 """simple docstring"""




 lowercase					:   Any				  =re.compile(R'''^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$'''			)
 if match := re.search(__A					,      __A			):
  return match.string == phone
 return False


if __name__ == "__main__":
      print(indian_phone_validator('+918827897895'))



