code: def create_test_graph(idtype):
      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,
      )
      return g
  
file_path: dgl/tests/python/common/test_heterograph-shared-memory.py
imports: import io
  import multiprocessing
  import os
  import pickle
  import unittest
  import backend
  import dgl
  import dgl.function
  import networkx
  import scipy.sparse
  from dgl.graph_index import create_graph_index
  from dgl.utils import toindex
  from utils import parametrize_idtype
label_desc: Use image node_id 1 for calling a global function with example usage: create_test_graph(idtype) and returns: g