def _example_number_anywhere_for_type(num_type):
 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

def _example_number_anywhere_for_type ( num_type ) : 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
gets a valid number for the specified number type .