code: def test_set_edge_attributes_multi_ignores_extra_edges(values, name):
      """If `values` is a dict or dict-of-dicts containing edges that are not in
      G, data associate with these edges should be ignored.
      """
      G = nx.MultiGraph([(0, 1, 0), (0, 1, 1)])
      nx.set_edge_attributes(G, values, name)
      assert G[0][1][0]["weight"] == 1.0
      assert G[0][1][1] == {}
      assert (0, 2) not in G.edges()
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_edge_attributes_multi_ignores_extra_edges(values, name) without return types