code: def test_has_edge(self):
      G = self.K3
      assert G.has_edge(0, 1)
      assert not G.has_edge(0, -1)
      assert G.has_edge(0, 1, 0)
      assert not G.has_edge(0, 1, 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 1 for calling the BaseMultiGraphTester obj's underlying member method code with example usage: obj.test_has_edge() without return types