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))
Data should not be saved if the template is invalid.
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/shortnumberinfo.py/is_carrier_specific--crossover with--dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/CreateTestCase.test_invalid_template