

def _example_number_anywhere_for_type(num_type):
    'Gets a valid number for the specified number type (it may belong to any country).\n\n    Arguments:\n    num_type -- The type of number that is needed.\n\n    Returns a valid number for the specified type. Returns None when the\n    metadata does not contain such information. This should only happen when\n    no numbers of this type are allocated anywhere in the world anymore.\n    '
    for region_code in SUPPORTED_REGIONS:
        example_numobj = example_number_for_type(region_code, num_type)
        if (example_numobj is not None):
            return example_numobj
    for country_calling_code in COUNTRY_CODES_FOR_NON_GEO_REGIONS:
        metadata = PhoneMetadata.metadata_for_nongeo_region(country_calling_code, None)
        desc = _number_desc_for_type(metadata, num_type)
        if (desc.example_number is not None):
            try:
                return parse(((_PLUS_SIGN + unicod(country_calling_code)) + desc.example_number), UNKNOWN_REGION)
            except NumberParseException:
                pass
    return None

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