code: def create_graph(idtype):
      g = dgl.from_networkx(
          nx.path_graph(5), idtype=idtype, device=F.ctx()
      )
      return g
  
file_path: dgl/tests/python/common/test_propagate.py
imports: import unittest
  import backend
  import dgl
  import networkx
  from utils import check_fail, parametrize_idtype
label_desc: Use image node_id 1 for calling a global function with example usage: create_graph(idtype) and returns: g