code: def test_directed_node_connectivity():
      G = nx.cycle_graph(
          10, create_using=nx.DiGraph()
      )  # only one direction
      D = nx.cycle_graph(10).to_directed()  # 2 reciprocal edges
      assert 1 == approx.node_connectivity(G)
      assert 1 == approx.node_connectivity(G, 1, 4)
      assert 2 == approx.node_connectivity(D)
      assert 2 == approx.node_connectivity(D, 1, 4)
  
imports: import pytest
  import networkx
  from networkx.algorithms import approximation
label_desc: Use image node_id 13 for calling a global function with example usage: test_directed_node_connectivity() without return types