

def format_national_number_with_preferred_carrier_code(numobj, fallback_carrier_code):
    "Formats a phone number in national format for dialing using the carrier\n    as specified in the preferred_domestic_carrier_code field of the\n    PhoneNumber object passed in. If that is missing, use the\n    fallback_carrier_code passed in instead. If there is no\n    preferred_domestic_carrier_code, and the fallback_carrier_code contains an\n    empty string, return the number in national format without any carrier\n    code.\n\n    Use format_national_number_with_carrier_code instead if the carrier code\n    passed in should take precedence over the number's\n    preferred_domestic_carrier_code when formatting.\n\n    Arguments:\n    numobj -- The phone number to be formatted\n    carrier_code -- The carrier selection code to be used, if none is found in the\n              phone number itself.\n\n    Returns the formatted phone number in national format for dialing using\n    the number's preferred_domestic_carrier_code, or the fallback_carrier_code\n    pass in if none is found.\n    "
    if (carrier_code.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)

dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py format_national_number_with_preferred_carrier_code/VarMisuse@16/408 `numobj`->`carrier_code`