def _is_valid_region_code(region_code):
    if region_code is None:
        return False
    return (region_code in SUPPORTED_REGIONS)
Helper function to check region code is not unknown or None
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/_is_valid_region_code