code: def graph1():
      g = dgl.graph(
          (
              [0, 0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 6, 6, 7, 8, 9],
              [4, 5, 1, 2, 4, 7, 9, 8, 6, 4, 1, 0, 1, 0, 2, 3, 5],
          ),
          device=F.cpu(),
      )
      g.ndata["h"] = F.copy_to(F.randn((g.num_nodes(), 2)), F.cpu())
      g.edata["w"] = F.copy_to(F.randn((g.num_edges(), 3)), F.cpu())
      return g
  
imports: from collections import defaultdict
  import backend
  import dgl
  import networkx
  import numpy
  import scipy.sparse
label_desc: Use image node_id 7 for calling a global function with example usage: graph1() and returns: g