def format_national_number_with_preferred_carrier_code(numobj, fallback_carrier_code):
    if numobj.preferred_domestic_carrier_code is not None:
        carrier_code = numobj.preferred_domestic_carrier_code
    else:
        carrier_code = fallback_carrier_code
    return format_national_number_with_carrier_code(numobj, carrier_code)
Formats a phone number in national format for dialing using the carrier
dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/format_national_number_with_preferred_carrier_code