def disconnectMsToNet(Facility_presence=0, UserUser_presence=0, SsVersionIndicator_presence=0):
 a = TpPd(pd=3)
 b = MessageType(mesType=37)
 c = Cause()
 packet = ((a / b) / c)
 if (Facility_presence is 1):
  d = FacilityHdr(ieiF=28, eightBitF=0)
  packet = (packet / d)
 if (UserUser_presence is 1):
  e = UserUserHdr(ieiUU=126, eightBitUU=0)
  packet = (packet / e)
 if (SsVersionIndicator_presence is 1):
  f = SsVersionIndicatorHdr(ieiSVI=127, eightBitSVI=0)
  packet = (packet / f)
 return packet

def disconnectMsToNet ( Facility_presence = 0 , UserUser_presence = 0 , SsVersionIndicator_presence = 0 ) : a = TpPd ( pd = 3 ) b = MessageType ( mesType = 37 ) c = Cause ( ) packet = ( ( a / b ) / c ) if ( Facility_presence is 1 ) : d = FacilityHdr ( ieiF = 28 , eightBitF = 0 ) packet = ( packet / d ) if ( UserUser_presence is 1 ) : e = UserUserHdr ( ieiUU = 126 , eightBitUU = 0 ) packet = ( packet / e ) if ( SsVersionIndicator_presence is 1 ) : f = SsVersionIndicatorHdr ( ieiSVI = 127 , eightBitSVI = 0 ) packet = ( packet / f ) return packet
disconnect section 9 .