def disconnectNetToMs(Facility_presence=0, ProgressIndicator_presence=0, UserUser_presence=0, AllowedActions_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 (ProgressIndicator_presence is 1):
  e = ProgressIndicatorHdr(ieiPI=30, eightBitPI=0)
  packet = (packet / e)
 if (UserUser_presence is 1):
  f = UserUserHdr(ieiUU=126, eightBitUU=0)
  packet = (packet / f)
 if (AllowedActions_presence is 1):
  g = AllowedActionsHdr(ieiAA=123, eightBitAA=0)
  packet = (packet / g)
 return packet

def disconnectNetToMs ( Facility_presence = 0 , ProgressIndicator_presence = 0 , UserUser_presence = 0 , AllowedActions_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 ( ProgressIndicator_presence is 1 ) : e = ProgressIndicatorHdr ( ieiPI = 30 , eightBitPI = 0 ) packet = ( packet / e ) if ( UserUser_presence is 1 ) : f = UserUserHdr ( ieiUU = 126 , eightBitUU = 0 ) packet = ( packet / f ) if ( AllowedActions_presence is 1 ) : g = AllowedActionsHdr ( ieiAA = 123 , eightBitAA = 0 ) packet = ( packet / g ) return packet
disconnect section 9 .