code: def get_partition_list(g, psize):
      p_gs = metis_partition(g, psize)
      graphs = []
      for k, val in p_gs.items():
          nids = val.ndata[dgl.NID]
          nids = F.asnumpy(nids)
          graphs.append(nids)
      return graphs
  
imports: from time import time
  import dgl
  import numpy
  from dgl import backend
  from dgl.transforms import metis_partition
label_desc: Use image node_id 1 for calling a global function with example usage: get_partition_list(g, psize) and returns: graphs