

def is_possible_number_string(number, region_dialing_from):
    'Check whether a phone number string is a possible number.\n\n    Takes a number in the form of a string, and the region where the number\n    could be dialed from. It provides a more lenient check than\n    is_valid_number; see is_possible_number_with_reason() for details.\n\n    This method first parses the number, then invokes is_possible_number with\n    the resultant PhoneNumber object.\n\n    Arguments:\n    number -- The number that needs to be checked, in the form of a string.\n    region_dialling_from -- The region that we are expecting the number to be\n              dialed from.  Note this is different from the region where the\n              number belongs.  For example, the number +1 650 253 0000 is a\n              number that belongs to US. When written in this form, it can be\n              dialed from any region. When it is written as 00 1 650 253 0000,\n              it can be dialed from any region which uses an international\n              dialling prefix of 00. When it is written as 650 253 0000, it\n              can only be dialed from within the US, and when written as 253\n              0000, it can only be dialed from within a smaller area in the US\n              (Mountain View, CA, to be more specific).\n\n    Returns True if the number is possible\n    '
    try:
        return is_possible_number(parse(number, number))
    except NumberParseException:
        return False

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py is_possible_number_string/VarMisuse@25/538 `region_dialing_from`->`number`