code: def test_number_of_edges_selfloops(self):
      G = self.K3
      G.add_edge(0, 0)
      G.add_edge(0, 0)
      G.add_edge(0, 0, key="parallel edge")
      G.remove_edge(0, 0, key="parallel edge")
      assert G.number_of_edges(0, 0) == 2
      G.remove_edge(0, 0)
      assert G.number_of_edges(0, 0) == 1
  
imports: from collections import UserDict
  import pytest
  import networkx
  from networkx.utils import edges_equal
  from .test_graph import BaseAttrGraphTester
  from .test_graph import TestGraph
label_desc: Use image node_id 11 for calling the BaseMultiGraphTester obj's underlying member method code with example usage: obj.test_number_of_edges_selfloops() without return types