code: def test_in_edges_data(self):
      G = nx.DiGraph([(0, 1, {"data": 0}), (1, 0, {})])
      assert sorted(G.in_edges(data=True)) == [
          (0, 1, {"data": 0}),
          (1, 0, {}),
      ]
      assert sorted(G.in_edges(1, data=True)) == [(0, 1, {"data": 0})]
      assert sorted(G.in_edges(data="data")) == [
          (0, 1, 0),
          (1, 0, None),
      ]
      assert sorted(G.in_edges(1, data="data")) == [(0, 1, 0)]
  
imports: import pytest
  import networkx
  from networkx.utils import nodes_equal
  from .test_graph import BaseAttrGraphTester, BaseGraphTester
  from .test_graph import TestEdgeSubgraph
  from .test_graph import TestGraph
label_desc: Use image node_id 10 for calling the BaseDiGraphTester obj's underlying member method code with example usage: obj.test_in_edges_data() without return types