code: def test_difference_multigraph_attributes():
      g = nx.MultiGraph()
      g.add_edge(0, 1, key=0)
      g.add_edge(0, 1, key=1)
      g.add_edge(0, 1, key=2)
      h = nx.MultiGraph()
      h.add_edge(0, 1, key=0)
      h.add_edge(0, 1, key=3)
      gh = nx.difference(g, h)
      assert set(gh.nodes()) == set(g.nodes())
      assert set(gh.nodes()) == set(h.nodes())
      assert sorted(gh.edges()) == [(0, 1), (0, 1)]
      assert sorted(gh.edges(keys=True)) == [(0, 1, 1), (0, 1, 2)]
  
imports: import os
  import pytest
  import networkx
  from networkx.classes.tests import dispatch_interface
  from networkx.utils import edges_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_difference_multigraph_attributes() without return types