code: def testAllgather(self):
      comm = self.INTERCOMM
      rank = comm.Get_rank()
      size = comm.Get_size()
      rsize = comm.Get_remote_size()
      for array, typecode in arrayimpl.loop():
          for color in (0, 1):
              if self.COLOR == color:
                  for n in range(size):
                      sbuf = array(n, typecode, color)
                      rbuf = array(-1, typecode, (rsize, n + color))
                      comm.Allgather(sbuf.as_mpi(), rbuf.as_mpi())
                      check = arrayimpl.scalar(n)
                      for value in rbuf.flat:
                          self.assertEqual(value, check)
              else:
                  for n in range(rsize):
                      sbuf = array(n, typecode, n + color)
                      rbuf = array(-1, typecode, (rsize, color))
                      comm.Allgather(sbuf.as_mpi(), rbuf.as_mpi())
                      check = arrayimpl.scalar(n)
                      for value in rbuf.flat:
                          self.assertEqual(value, check)
  
imports: from mpi4py import MPI
  import mpiunittest
  import arrayimpl
label_desc: Use image node_id 7 for calling the BaseTestCCOBufInter obj's underlying member method code with example usage: obj.testAllgather() without return types