code: def test_directed_raises(self):
      with pytest.raises(nx.NetworkXNotImplemented):
          dir_G = nx.gn_graph(n=5)
          prev_cc = None
          edge = self.pick_add_edge(dir_G)
          insert = True
          nx.incremental_closeness_centrality(
              dir_G, edge, prev_cc, insert
          )
  
file_path: networkx/networkx/algorithms/centrality/tests/test_closeness_centrality.py
imports: import pytest
  import networkx
label_desc: Use image node_id 12 for calling the TestClosenessCentrality obj's underlying member method code with example usage: obj.test_directed_raises() without return types