def activatePdpContextRequest(AccessPointName_presence=0, ProtocolConfigurationOptions_presence=0):
 a = TpPd(pd=8)
 b = MessageType(mesType=65)
 c = NetworkServiceAccessPointIdentifier()
 d = LlcServiceAccessPointIdentifier()
 e = QualityOfService()
 f = PacketDataProtocolAddress()
 packet = (((((a / b) / c) / d) / e) / f)
 if (AccessPointName_presence is 1):
  g = AccessPointName(ieiAPN=40)
  packet = (packet / g)
 if (ProtocolConfigurationOptions_presence is 1):
  h = ProtocolConfigurationOptions(ieiPCO=39)
  packet = (packet / h)
 return packet

def activatePdpContextRequest ( AccessPointName_presence = 0 , ProtocolConfigurationOptions_presence = 0 ) : a = TpPd ( pd = 8 ) b = MessageType ( mesType = 65 ) c = NetworkServiceAccessPointIdentifier ( ) d = LlcServiceAccessPointIdentifier ( ) e = QualityOfService ( ) f = PacketDataProtocolAddress ( ) packet = ( ( ( ( ( a / b ) / c ) / d ) / e ) / f ) if ( AccessPointName_presence is 1 ) : g = AccessPointName ( ieiAPN = 40 ) packet = ( packet / g ) if ( ProtocolConfigurationOptions_presence is 1 ) : h = ProtocolConfigurationOptions ( ieiPCO = 39 ) packet = ( packet / h ) return packet
activate pdp context request section 9 .