def ptmsiReallocationCommand(PTmsiSignature_presence=0):
 a = TpPd(pd=3)
 b = MessageType(mesType=16)
 c = MobileId()
 d = RoutingAreaIdentification()
 e = ForceToStandbyAndSpareHalfOctets()
 packet = ((((a / b) / c) / d) / e)
 if (PTmsiSignature_presence is 1):
  g = PTmsiSignature(ieiPTS=25)
  packet = (packet / g)
 return packet

def ptmsiReallocationCommand ( PTmsiSignature_presence = 0 ) : a = TpPd ( pd = 3 ) b = MessageType ( mesType = 16 ) c = MobileId ( ) d = RoutingAreaIdentification ( ) e = ForceToStandbyAndSpareHalfOctets ( ) packet = ( ( ( ( a / b ) / c ) / d ) / e ) if ( PTmsiSignature_presence is 1 ) : g = PTmsiSignature ( ieiPTS = 25 ) packet = ( packet / g ) return packet
p-tmsi reallocation command section 9 .