code: def test_create_multigraph():
      """Tests that using a MultiGraph creates multiple edges."""
      G = nx.path_graph(3, create_using=nx.MultiGraph())
      G.add_edge(0, 1)
      G.add_edge(0, 0)
      G.add_edge(0, 2)
      actual = nx.contracted_nodes(G, 0, 2)
      expected = nx.MultiGraph()
      expected.add_edge(0, 1)
      expected.add_edge(0, 1)
      expected.add_edge(0, 1)
      expected.add_edge(0, 0)
      expected.add_edge(0, 0)
      assert edges_equal(actual.edges, expected.edges)
  
imports: import pytest
  import networkx
  from networkx.utils import arbitrary_element, edges_equal, nodes_equal
label_desc: Use image node_id 23 for calling a global function with example usage: test_create_multigraph() without return types