code: def tocpu(g):
      src, dst = g.edges()
      src = src.cpu()
      dst = dst.cpu()
      return dgl.graph((src, dst), num_nodes=g.num_nodes())
  
file_path: dgl/examples/pytorch/jtnn/jtnn/nnutils.py
imports: import os
  import dgl
  import torch
  import torch.nn
label_desc: Use image node_id 2 for calling a global function with example usage: tocpu(g) and returns: dgl