code: def test_missing_source():
      G = nx.path_graph(4)
      pytest.raises(
          nx.NetworkXError, approx.node_connectivity, G, 10, 1
      )
  
imports: import pytest
  import networkx
  from networkx.algorithms import approximation
label_desc: Use image node_id 10 for calling a global function with example usage: test_missing_source() without return types