code: def test_selfloop_edges_multi_with_data_and_keys():
      G = nx.complete_graph(3, create_using=nx.MultiGraph)
      G.add_edge(0, 0, weight=10)
      G.add_edge(0, 0, weight=100)
      assert edges_equal(
          nx.selfloop_edges(G, data="weight", keys=True),
          [(0, 0, 0, 10), (0, 0, 1, 100)],
      )
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 12 for calling a global function with example usage: test_selfloop_edges_multi_with_data_and_keys() without return types