def is_valid_number(numobj):
    region_code = region_code_for_number(numobj)
    return is_valid_number_for_region(numobj, region_code)
Tests whether a phone number matches a valid pattern.
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/is_valid_number