code: def create_heterograph4(idtype):
      ctx = th.device("cuda")
  
      g = dgl.heterograph(
          {
              ("user", "follows", "user"): (
                  F.tensor([1, 2], dtype=idtype),
                  F.tensor([0, 1], dtype=idtype),
              ),
              ("user", "plays", "game"): (
                  F.tensor([0, 1], dtype=idtype),
                  F.tensor([0, 1], dtype=idtype),
              ),
          },
          idtype=idtype,
          device=th.device("cuda"),
      )
      g.nodes["user"].data["h"] = F.copy_to(
          F.tensor([1, 1, 1], dtype=idtype), ctx=ctx
      )
      g.nodes["game"].data["h"] = F.copy_to(
          F.tensor([2, 2], dtype=idtype), ctx=ctx
      )
      g.edges["follows"].data["h"] = F.copy_to(
          F.tensor([1, 2], dtype=idtype), ctx=ctx
      )
      g.edges["plays"].data["h"] = F.copy_to(
          F.tensor([1, 2], 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 4 for calling a global function with example usage: create_heterograph4(idtype) and returns: g