def channelRelease(BaRange_presence=0, GroupChannelDescription_presence=0, GroupCipherKeyNumber_presence=0, GprsResumption_presence=0, BaListPref_presence=0):
 a = TpPd(pd=6)
 b = MessageType(mesType=13)
 c = RrCause()
 packet = ((a / b) / c)
 if (BaRange_presence is 1):
  d = BaRangeHdr(ieiBR=115, eightBitBR=0)
  packet = (packet / d)
 if (GroupChannelDescription_presence is 1):
  e = GroupChannelDescriptionHdr(ieiGCD=116, eightBitGCD=0)
  packet = (packet / e)
 if (GroupCipherKeyNumber_presence is 1):
  f = GroupCipherKeyNumber(ieiGCKN=8)
  packet = (packet / f)
 if (GprsResumption_presence is 1):
  g = GprsResumptionHdr(ieiGR=12, eightBitGR=0)
  packet = (packet / g)
 if (BaListPref_presence is 1):
  h = BaListPrefHdr(ieiBLP=117, eightBitBLP=0)
  packet = (packet / h)
 return packet

def channelRelease ( BaRange_presence = 0 , GroupChannelDescription_presence = 0 , GroupCipherKeyNumber_presence = 0 , GprsResumption_presence = 0 , BaListPref_presence = 0 ) : a = TpPd ( pd = 6 ) b = MessageType ( mesType = 13 ) c = RrCause ( ) packet = ( ( a / b ) / c ) if ( BaRange_presence is 1 ) : d = BaRangeHdr ( ieiBR = 115 , eightBitBR = 0 ) packet = ( packet / d ) if ( GroupChannelDescription_presence is 1 ) : e = GroupChannelDescriptionHdr ( ieiGCD = 116 , eightBitGCD = 0 ) packet = ( packet / e ) if ( GroupCipherKeyNumber_presence is 1 ) : f = GroupCipherKeyNumber ( ieiGCKN = 8 ) packet = ( packet / f ) if ( GprsResumption_presence is 1 ) : g = GprsResumptionHdr ( ieiGR = 12 , eightBitGR = 0 ) packet = ( packet / g ) if ( BaListPref_presence is 1 ) : h = BaListPrefHdr ( ieiBLP = 117 , eightBitBLP = 0 ) packet = ( packet / h ) return packet
channel release section 9 .