def get_carrier_id():
 carrier = get_carrier()
 if (carrier is None):
  return carrier
 for carr in CARRIERS:
  if (carr.slug == carrier):
   return carr.id
 return mkt.constants.carriers.UNKNOWN_CARRIER.id

def get_carrier_id ( ) : carrier = get_carrier ( ) if ( carrier is None ) : return carrier for carr in CARRIERS : if ( carr . slug == carrier ) : return carr . id return mkt . constants . carriers . UNKNOWN_CARRIER . id
returns the carrier id for the request lifecycle .