code: def test_out_edges_data(self):
      G = self.K3
      assert sorted(G.edges(0, data=True)) == [(0, 1, {}), (0, 2, {})]
      G.remove_edge(0, 1)
      G.add_edge(0, 1, data=1)
      assert sorted(G.edges(0, data=True)) == [
          (0, 1, {"data": 1}),
          (0, 2, {}),
      ]
      assert sorted(G.edges(0, data="data")) == [
          (0, 1, 1),
          (0, 2, None),
      ]
      assert sorted(G.edges(0, data="data", default=-1)) == [
          (0, 1, 1),
          (0, 2, -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 6 for calling the BaseMultiDiGraphTester obj's underlying member method code with example usage: obj.test_out_edges_data() without return types