code: def test_in_edges_data(self):
      G = self.K3
      assert sorted(G.in_edges(0, data=True)) == [
          (1, 0, {}),
          (2, 0, {}),
      ]
      G.remove_edge(1, 0)
      G.add_edge(1, 0, data=1)
      assert sorted(G.in_edges(0, data=True)) == [
          (1, 0, {"data": 1}),
          (2, 0, {}),
      ]
      assert sorted(G.in_edges(0, data="data")) == [
          (1, 0, 1),
          (2, 0, None),
      ]
      assert sorted(G.in_edges(0, data="data", default=-1)) == [
          (1, 0, 1),
          (2, 0, -1),
      ]
  
imports: from collections import UserDict
  import pytest
  import networkx
  from networkx.utils import edges_equal
  from .test_multigraph import BaseMultiGraphTester
  from .test_multigraph import TestEdgeSubgraph
  from .test_multigraph import TestMultiGraph
label_desc: Use image node_id 9 for calling the BaseMultiDiGraphTester obj's underlying member method code with example usage: obj.test_in_edges_data() without return types