code: def test_digraph(self):
      with pytest.raises(nx.NetworkXNotImplemented):
          G = nx.DiGraph()
          G.add_edges_from([(0, 1), (1, 2)])
          self.func(G, 0, 2)
  
imports: import random
  import pytest
  import networkx
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 5 for calling the TestCommonNeighbors obj's underlying member method code with example usage: obj.test_digraph() without return types