code: def test_get_edge_data(self):
      G = self.K3
      assert G.get_edge_data(0, 1) == {0: {}}
      assert G[0][1] == {0: {}}
      assert G[0][1][0] == {}
      assert G.get_edge_data(10, 20) is None
      assert G.get_edge_data(0, 1, 0) == {}
  
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 2 for calling the BaseMultiGraphTester obj's underlying member method code with example usage: obj.test_get_edge_data() without return types