code: def test_tree_all_pairs_lca_not_implemented(self):
      NNI = nx.NetworkXNotImplemented
      G = nx.Graph([(0, 1)])
      with pytest.raises(NNI):
          next(tree_all_pairs_lca(G))
      with pytest.raises(NNI):
          next(all_pairs_lca(G))
      pytest.raises(NNI, nx.lowest_common_ancestor, G, 0, 1)
      G = nx.MultiGraph([(0, 1)])
      with pytest.raises(NNI):
          next(tree_all_pairs_lca(G))
      with pytest.raises(NNI):
          next(all_pairs_lca(G))
      pytest.raises(NNI, nx.lowest_common_ancestor, G, 0, 1)
  
imports: from itertools import chain, combinations, product
  import pytest
  import networkx
label_desc: Use image node_id 14 for calling the TestTreeLCA obj's underlying member method code with example usage: obj.test_tree_all_pairs_lca_not_implemented() without return types