

def is_valid_number(numobj):
    "Tests whether a phone number matches a valid pattern.\n\n    Note this doesn't verify the number is actually in use, which is\n    impossible to tell by just looking at a number itself.\n\n    Arguments:\n    numobj -- The phone number object that we want to validate\n\n    Returns a boolean that indicates whether the number is of a valid pattern.\n    "
    region_code = region_code_for_number(numobj)
    return is_valid_number_for_region(numobj, region_code)

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py is_valid_number/original