

def region_code_for_number(numobj):
    'Returns the region where a phone number is from.\n\n    This could be used for geocoding at the region level.\n\n    Arguments:\n    numobj -- The phone number object whose origin we want to know\n\n    Returns the region where the phone number is from, or None if no region\n    matches this calling code.\n    '
    country_code = numobj.country_code
    regions = COUNTRY_CODE_TO_REGION_CODE.get(country_code, None)
    if (regions is None):
        return None
    if (len(regions) == 1):
        return regions[0]
    else:
        return _region_code_for_number_from_list(numobj, country_code)

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py region_code_for_number/VarMisuse@70/223 `regions`->`country_code`