code: def test_all_pairs_lca_generator(self):
      all_pairs = product(self.DG.nodes(), self.DG.nodes())
      ans = all_pairs_lca(self.DG, pairs=all_pairs)
      self.assert_lca_dicts_same(dict(ans), self.gold)
  
imports: from itertools import chain, combinations, product
  import pytest
  import networkx
label_desc: Use image node_id 5 for calling the TestDAGLCA obj's underlying member method code with example usage: obj.test_all_pairs_lca_generator() without return types