code: def create_test_heterograph(idtype):
      # 3 users, 2 games, 2 developers
      # metagraph:
      #    ('user', 'follows', 'user'),
      #    ('user', 'plays', 'game'),
      #    ('user', 'wishes', 'game'),
      #    ('developer', 'develops', 'game')])
  
      g = dgl.heterograph(
          {
              ("user", "follows", "user"): ([0, 1], [1, 2]),
              ("user", "plays", "game"): ([0, 1, 2, 1], [0, 0, 1, 1]),
              ("user", "wishes", "game"): ([0, 2], [1, 0]),
              ("developer", "develops", "game"): ([0, 1], [0, 1]),
          },
          idtype=idtype,
          device=F.ctx(),
      )
      assert g.idtype == idtype
      assert g.device == F.ctx()
      return g
  
file_path: dgl/tests/python/common/test_heterograph-index.py
imports: import unittest
  import backend
  import dgl
  import pytest
  from dgl import DGLError
  from utils import parametrize_idtype
label_desc: Use image node_id 1 for calling a global function with example usage: create_test_heterograph(idtype) and returns: g