code: def testNeighborAlltoallw(self):
      size = self.COMM.Get_size()
      for comm in create_topo_comms(self.COMM):
          rsize, ssize = get_neighbors_count(comm)
          for array, typecode in arrayimpl.loop():
              for n in range(1, 4):
                  for v in range(3):
                      check = arrayimpl.scalar(v)
                      sbuf = array(v, typecode, (ssize, n))
                      rbuf = array(-1, typecode, (rsize, n))
                      sdt, rdt = sbuf.mpidtype, rbuf.mpidtype
                      sdsp = list(
                          range(
                              0, ssize * n * sdt.extent, n * sdt.extent
                          )
                      )
                      rdsp = list(
                          range(
                              0, rsize * n * rdt.extent, n * rdt.extent
                          )
                      )
                      smsg = [
                          sbuf.as_raw(),
                          ([n] * ssize, sdsp),
                          [sdt] * ssize,
                      ]
                      rmsg = (
                          rbuf.as_raw(),
                          ([n] * rsize, rdsp),
                          [rdt] * rsize,
                      )
                      try:
                          comm.Neighbor_alltoallw(smsg, rmsg)
                      except NotImplementedError:
                          self.skipTest("mpi-neighbor_alltoallw")
                      for value in rbuf.flat:
                          self.assertEqual(value, check)
                      check = arrayimpl.scalar(v + 1)
                      smsg[0] = array(
                          v + 1, typecode, (ssize, n)
                      ).as_raw()
                      try:
                          comm.Ineighbor_alltoallw(smsg, rmsg).Wait()
                      except NotImplementedError:
                          self.skipTest("mpi-ineighbor_alltoallw")
                      for value in rbuf.flat:
                          self.assertEqual(value, check)
          comm.Free()
  
imports: from mpi4py import MPI
  import mpiunittest
  import arrayimpl
label_desc: Use image node_id 3 for calling the BaseTestCCONghBuf obj's underlying member method code with example usage: obj.testNeighborAlltoallw() without return types