def systemInformationType4(ChannelDescription_presence=0, MobileAllocation_presence=0):
 a = L2PseudoLength()
 b = TpPd(pd=6)
 c = MessageType(mesType=28)
 d = LocalAreaId()
 e = CellSelectionParameters()
 f = RachControlParameters()
 packet = (((((a / b) / c) / d) / e) / f)
 if (ChannelDescription_presence is 1):
  g = ChannelDescriptionHdr(ieiCD=100, eightBitCD=0)
  packet = (packet / g)
 if (MobileAllocation_presence is 1):
  h = MobileAllocationHdr(ieiMA=114, eightBitMA=0)
  packet = (packet / h)
 i = Si4RestOctets()
 packet = (packet / i)
 return packet

def systemInformationType4 ( ChannelDescription_presence = 0 , MobileAllocation_presence = 0 ) : a = L2PseudoLength ( ) b = TpPd ( pd = 6 ) c = MessageType ( mesType = 28 ) d = LocalAreaId ( ) e = CellSelectionParameters ( ) f = RachControlParameters ( ) packet = ( ( ( ( ( a / b ) / c ) / d ) / e ) / f ) if ( ChannelDescription_presence is 1 ) : g = ChannelDescriptionHdr ( ieiCD = 100 , eightBitCD = 0 ) packet = ( packet / g ) if ( MobileAllocation_presence is 1 ) : h = MobileAllocationHdr ( ieiMA = 114 , eightBitMA = 0 ) packet = ( packet / h ) i = Si4RestOctets ( ) packet = ( packet / i ) return packet
system information type 4 section 9 .