code: def test_all_pairs_lca_one_pair_gh4942(self):
      G = nx.DiGraph()
      # Note: order edge addition is critical to the test
      G.add_edge(0, 1)
      G.add_edge(2, 0)
      G.add_edge(2, 3)
      G.add_edge(4, 0)
      G.add_edge(5, 2)
  
      assert nx.lowest_common_ancestor(G, 1, 3) == 2
  
imports: from itertools import chain, combinations, product
  import pytest
  import networkx
label_desc: Use image node_id 16 for calling the TestDAGLCA obj's underlying member method code with example usage: obj.test_all_pairs_lca_one_pair_gh4942() without return types