

def region_code_for_country_code(country_code):
    'Returns the region code that matches a specific country calling code.\n\n    In the case of no region code being found, UNKNOWN_REGION (\'ZZ\') will be\n    returned. In the case of multiple regions, the one designated in the\n    metadata as the "main" region for this calling code will be returned.  If\n    the country_code entered is valid but doesn\'t match a specific region\n    (such as in the case of non-geographical calling codes like 800) the value\n    "001" will be returned (corresponding to the value for World in the UN\n    M.49 schema).\n    '
    regions = COUNTRY_CODE_TO_REGION_CODE.get(country_code, None)
    if (regions is None):
        return UNKNOWN_REGION
    else:
        return regions[0]

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