code: def dglGraph_to_adj_list(g):
      adj_list = {}
      for node in range(g.num_nodes()):
          # For undirected graph. successors and
          # predecessors are equivalent.
          adj_list[node] = g.successors(node).tolist()
      return adj_list
  
imports: import os
  import pickle
  import random
  import matplotlib.pyplot
  import networkx
  from torch.utils.data import Dataset
label_desc: Use image node_id 6 for calling a global function with example usage: dglGraph_to_adj_list(g) and returns: adj_list