code: def test_multigraph_node_removal(idtype):
      g = create_graph(idtype, 5)
      for i in range(5):
          g.add_edges(i, i)
          g.add_edges(i, i)
      assert g.num_nodes() == 5
      assert g.num_edges() == 10
  
      # remove nodes
      g.remove_nodes([2, 3])
      assert g.num_nodes() == 3
      assert g.num_edges() == 6
  
      # add nodes
      g.add_nodes(1)
      g.add_edges(1, 1)
      g.add_edges(1, 1)
      assert g.num_nodes() == 4
      assert g.num_edges() == 8
  
      # remove nodes
      g.remove_nodes([0])
      assert g.num_nodes() == 3
      assert g.num_edges() == 6
  
file_path: dgl/tests/python/common/test_heterograph-remove.py
imports: import backend
  import dgl
  import numpy
  from utils import parametrize_idtype
label_desc: Use image node_id 3 for calling a global function with example usage: test_multigraph_node_removal(idtype) without return types