code: def test_selfloops_removal(graph_type):
      G = nx.complete_graph(3, create_using=graph_type)
      G.add_edge(0, 0)
      G.remove_edges_from(nx.selfloop_edges(G, keys=True))
      G.add_edge(0, 0)
      G.remove_edges_from(nx.selfloop_edges(G, data=True))
      G.add_edge(0, 0)
      G.remove_edges_from(nx.selfloop_edges(G, keys=True, data=True))
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 13 for calling a global function with example usage: test_selfloops_removal(graph_type) without return types