def releaseMsToNet(Cause_presence=0, Cause_presence1=0, Facility_presence=0, UserUser_presence=0, SsVersionIndicator_presence=0):
 a = TpPd(pd=3)
 b = MessageType(mesType=45)
 packet = (a / b)
 if (Cause_presence is 1):
  c = CauseHdr(ieiC=8, eightBitC=0)
  packet = (packet / c)
 if (Cause_presence1 is 1):
  d = CauseHdr(ieiC=8, eightBitC=0)
  packet = (packet / d)
 if (Facility_presence is 1):
  e = FacilityHdr(ieiF=28, eightBitF=0)
  packet = (packet / e)
 if (UserUser_presence is 1):
  f = UserUserHdr(ieiUU=126, eightBitUU=0)
  packet = (packet / f)
 if (SsVersionIndicator_presence is 1):
  g = SsVersionIndicatorHdr(ieiSVI=127, eightBitSVI=0)
  packet = (packet / g)
 return packet

def releaseMsToNet ( Cause_presence = 0 , Cause_presence1 = 0 , Facility_presence = 0 , UserUser_presence = 0 , SsVersionIndicator_presence = 0 ) : a = TpPd ( pd = 3 ) b = MessageType ( mesType = 45 ) packet = ( a / b ) if ( Cause_presence is 1 ) : c = CauseHdr ( ieiC = 8 , eightBitC = 0 ) packet = ( packet / c ) if ( Cause_presence1 is 1 ) : d = CauseHdr ( ieiC = 8 , eightBitC = 0 ) packet = ( packet / d ) if ( Facility_presence is 1 ) : e = FacilityHdr ( ieiF = 28 , eightBitF = 0 ) packet = ( packet / e ) if ( UserUser_presence is 1 ) : f = UserUserHdr ( ieiUU = 126 , eightBitUU = 0 ) packet = ( packet / f ) if ( SsVersionIndicator_presence is 1 ) : g = SsVersionIndicatorHdr ( ieiSVI = 127 , eightBitSVI = 0 ) packet = ( packet / g ) return packet
release section 9 .