code: def create_heterograph1(idtype):
      ctx = th.device("cuda")
      graph_data = {
          ("nt.a", "join.1", "nt.a"): (
              F.tensor([0, 1, 2], dtype=idtype),
              F.tensor([0, 1, 2], dtype=idtype),
          ),
          ("nt.a", "join.2", "nt.a"): (
              F.tensor([0, 1, 2], dtype=idtype),
              F.tensor([0, 1, 2], dtype=idtype),
          ),
      }
      g = dgl.heterograph(graph_data, device=th.device("cuda"))
      g.nodes["nt.a"].data["h"] = F.copy_to(
          F.tensor([1, 1, 1], dtype=idtype), ctx=ctx
      )
      return g
  
file_path: cugraph/python/cugraph-dgl/tests/test_from_dgl_heterograph.py
imports: import pytest
  from cugraph.utilities.utils import import_optional
  from .utils import assert_same_edge_feats, assert_same_node_feats, assert_same_num_edges_can_etypes, assert_same_num_edges_etypes, assert_same_num_nodes
label_desc: Use image node_id 1 for calling a global function with example usage: create_heterograph1(idtype) and returns: g