code: def test_hetero_graph(type_n, node_n, num_parts):
      g, expected_c_etypes = create_random_hetero(type_n, node_n)
      do_convert_and_check(
          g, "convert_conf_test", num_parts, expected_c_etypes
      )
  
file_path: dgl/tests/tools/test_change_etype_to_canonical_etype.py
imports: import json
  import os
  import tempfile
  import unittest
  from collections import Counter
  import dgl
  import pytest
  from change_etype_to_canonical_etype import convert_conf, is_old_version
  from dgl.distributed import partition_graph
  from scipy import sparse
label_desc: Use image node_id 2 for calling a global function with example usage: test_hetero_graph(type_n, node_n, num_parts) without return types