def channelModeModify(VgcsTargetModeIdentication_presence=0, MultiRateConfiguration_presence=0):
 a = TpPd(pd=6)
 b = MessageType(mesType=8)
 c = ChannelDescription2()
 d = ChannelMode()
 packet = (((a / b) / c) / d)
 if (VgcsTargetModeIdentication is 1):
  e = VgcsTargetModeIdenticationHdr(ieiVTMI=1, eightBitVTMI=0)
  packet = (packet / e)
 if (MultiRateConfiguration is 1):
  f = MultiRateConfigurationHdr(ieiMRC=3, eightBitMRC=0)
  packet = (packet / f)
 return packet

def channelModeModify ( VgcsTargetModeIdentication_presence = 0 , MultiRateConfiguration_presence = 0 ) : a = TpPd ( pd = 6 ) b = MessageType ( mesType = 8 ) c = ChannelDescription2 ( ) d = ChannelMode ( ) packet = ( ( ( a / b ) / c ) / d ) if ( VgcsTargetModeIdentication is 1 ) : e = VgcsTargetModeIdenticationHdr ( ieiVTMI = 1 , eightBitVTMI = 0 ) packet = ( packet / e ) if ( MultiRateConfiguration is 1 ) : f = MultiRateConfigurationHdr ( ieiMRC = 3 , eightBitMRC = 0 ) packet = ( packet / f ) return packet
channel mode modify section 9 .