code: def testProbeRecv(self):
      comm = self.COMM
      size = comm.Get_size()
      rank = comm.Get_rank()
      for smsg in messages:
          if size == 1:
              sr = comm.isend(smsg, 0, 0)
              m = comm.mprobe(0, 0)
              self.assertIsInstance(m, MPI.Message)
              self.assertTrue(m)
              rr = m.irecv()
              self.assertFalse(m)
              self.assertTrue(sr)
              self.assertTrue(rr)
              MPI.Request.Waitall([sr, rr])
              self.assertFalse(sr)
              self.assertFalse(rr)
              #
              r = comm.isend(smsg, 0, 0)
              m = MPI.Message.probe(comm, 0, 0)
              self.assertIsInstance(m, MPI.Message)
              self.assertTrue(m)
              rmsg = m.recv()
              self.assertFalse(m)
              r.wait()
          elif rank == 0:
              comm.send(smsg, 1, 0)
              m = comm.mprobe(1, 0)
              self.assertTrue(m)
              rmsg = m.recv()
              self.assertFalse(m)
              #
              comm.send(smsg, 1, 1)
              m = None
              while not m:
                  m = MPI.Message.iprobe(comm, 1, 1)
              rmsg = m.irecv().wait()
          elif rank == 1:
              m = comm.mprobe(0, 0)
              self.assertTrue(m)
              rmsg = m.recv()
              self.assertFalse(m)
              comm.send(rmsg, 0, 0)
              #
              m = None
              while not m:
                  m = MPI.Message.iprobe(comm, 0, 1)
              rmsg = m.irecv().wait()
              comm.send(smsg, 0, 1)
          else:
              rmsg = smsg
  
          self.assertEqual(smsg, rmsg)
  
imports: from mpi4py import MPI
  import mpiunittest
label_desc: Use image node_id 2 for calling the BaseTestP2PMatched obj's underlying member method code with example usage: obj.testProbeRecv() without return types