


import re


def    __lowerCamelCase   (      A__						: str					)     ->    bool:
   lowerCamelCase_						:   str		= 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'))









import os

import pytest

from transformers.dynamic_module_utils import get_imports


snake_case__				:	List[Any]					       =					'\nimport os\n'

snake_case__				:	List[str]					       =					'\ndef foo():\n    import os\n    return False\n'

snake_case__				:	List[Any]					       =					'\ndef foo():\n    def bar():\n        if True:\n            import os\n        return False\n    return bar()\n'

snake_case__				:	List[str]					       =					'\nimport os\n\ntry:\n    import bar\nexcept ImportError:\n    raise ValueError()\n'

snake_case__				:	Optional[Any]					       =					'\nimport os\n\ndef foo():\n    try:\n        import bar\n    except ImportError:\n        raise ValueError()\n'

snake_case__				:	Tuple					       =					'\nimport os\n\ntry:\n    import bar\nexcept (ImportError, AttributeError):\n    raise ValueError()\n'

snake_case__				:	str					       =					'\nimport os\n\ntry:\n    import bar\nexcept ImportError as e:\n    raise ValueError()\n'

snake_case__				:	Optional[Any]					       =					'\nimport os\n\ntry:\n    import bar\nexcept:\n    raise ValueError()\n'

snake_case__				:	Any					       =					'\nimport os\n\ntry:\n    import bar\n    import baz\nexcept ImportError:\n    raise ValueError()\n'

snake_case__				:	Union[str, Any]					       =					'\nimport os\n\ntry:\n    import bar\n    import baz\nexcept ImportError:\n    x = 1\n    raise ValueError()\n'

snake_case__				:	Any					       =					[
    TOP_LEVEL_IMPORT,
    IMPORT_IN_FUNCTION,
    DEEPLY_NESTED_IMPORT,
    TOP_LEVEL_TRY_IMPORT,
    GENERIC_EXCEPT_IMPORT,
    MULTILINE_TRY_IMPORT,
    MULTILINE_BOTH_IMPORT,
    MULTIPLE_EXCEPTS_IMPORT,
    EXCEPT_AS_IMPORT,
    TRY_IMPORT_IN_FUNCTION,
]


@pytest.mark.parametrize("""case"""						,						A__					)
def    __lowerCamelCase   (      A__						: Dict						,						A__						: int					)     ->    List[Any]:
   lowerCamelCase_						:   List[str]		= os.path.join(A__						,						"""test_file.py"""					)
   with open(A__						,						"""w"""					) as _tmp_file:
      _tmp_file.write(A__					)

   lowerCamelCase_						:   str		= get_imports(A__					)
   assert parsed_imports == ["os"]





