code: def test_batched_edge_ordering(idtype):
      g1 = dgl.graph(([], [])).astype(idtype).to(F.ctx())
      g1.add_nodes(6)
      g1.add_edges([4, 4, 2, 2, 0], [5, 3, 3, 1, 1])
      e1 = F.randn((5, 10))
      g1.edata["h"] = e1
      g2 = dgl.graph(([], [])).astype(idtype).to(F.ctx())
      g2.add_nodes(6)
      g2.add_edges([0, 1, 2, 5, 4, 5], [1, 2, 3, 4, 3, 0])
      e2 = F.randn((6, 10))
      g2.edata["h"] = e2
      g = dgl.batch([g1, g2])
      r1 = g.edata["h"][g.edge_ids(4, 5)]
      r2 = g1.edata["h"][g1.edge_ids(4, 5)]
      assert F.array_equal(r1, r2)
  
file_path: dgl/tests/python/common/test_batch-graph.py
imports: import unittest
  import backend
  import dgl
  import numpy
  from utils import parametrize_idtype
label_desc: Use image node_id 9 for calling a global function with example usage: test_batched_edge_ordering(idtype) without return types