code: def test_interface_only_source():
      G = nx.complete_graph(5)
      for interface_func in [
          nx.node_connectivity,
          nx.edge_connectivity,
      ]:
          pytest.raises(nx.NetworkXError, interface_func, G, s=0)
  
imports: import itertools
  import pytest
  import networkx
  from networkx.algorithms import flow
  from networkx.algorithms.connectivity import local_edge_connectivity, local_node_connectivity
label_desc: Use image node_id 24 for calling a global function with example usage: test_interface_only_source() without return types