code: def test_tree_all_pairs_lca_invalid_input(self):
      empty_digraph = tree_all_pairs_lca(nx.DiGraph())
      pytest.raises(nx.NetworkXPointlessConcept, list, empty_digraph)
  
      bad_pairs_digraph = tree_all_pairs_lca(self.DG, pairs=[(-1, -2)])
      pytest.raises(nx.NodeNotFound, list, bad_pairs_digraph)
  
imports: from itertools import chain, combinations, product
  import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestTreeLCA obj's underlying member method code with example usage: obj.test_tree_all_pairs_lca_invalid_input() without return types