def is_carrier_specific(numobj):
 region_codes = region_codes_for_country_code(numobj.country_code)
 region_code = _region_code_for_short_number_from_region_list(numobj, region_codes)
 national_number = national_significant_number(numobj)
 metadata = PhoneMetadata.short_metadata_for_region(region_code)
 return ((metadata is not None) and _is_number_matching_desc(national_number, metadata.carrier_specific))

def is_carrier_specific ( numobj ) : region_codes = region_codes_for_country_code ( numobj . country_code ) region_code = _region_code_for_short_number_from_region_list ( numobj , region_codes ) national_number = national_significant_number ( numobj ) metadata = PhoneMetadata . short_metadata_for_region ( region_code ) return ( ( metadata is not None ) and _is_number_matching_desc ( national_number , metadata . carrier_specific ) )
given a valid short number .