code: def testGraphMap(self):
      comm = self.COMM
      size = comm.Get_size()
      index, edges = [0], []
      for i in range(size):
          pos = index[-1]
          index.append(pos + 2)
          edges.append((i - 1) % size)
          edges.append((i + 1) % size)
      # Version 1
      topo = comm.Create_graph(index, edges, reorder=True)
      rank = comm.Graph_map(index, edges)
      self.assertEqual(topo.Get_rank(), rank)
      topo.Free()
      # Version 2
      topo = comm.Create_graph(index[1:], edges, reorder=True)
      rank = comm.Graph_map(index[1:], edges)
      self.assertEqual(topo.Get_rank(), rank)
      topo.Free()
  
imports: from mpi4py import MPI
  import mpiunittest
label_desc: Use image node_id 8 for calling the BaseTestTopo obj's underlying member method code with example usage: obj.testGraphMap() without return types