code: def test_not_weakly_connected():
      G = nx.DiGraph()
      nx.add_path(G, [1, 2, 3])
      nx.add_path(G, [4, 5])
      for interface_func in [nx.minimum_edge_cut, nx.minimum_node_cut]:
          for flow_func in flow_funcs:
              pytest.raises(
                  nx.NetworkXError,
                  interface_func,
                  G,
                  flow_func=flow_func,
              )
  
imports: import pytest
  import networkx
  from networkx.algorithms import flow
  from networkx.algorithms.connectivity import minimum_st_edge_cut, minimum_st_node_cut
  from networkx.utils import arbitrary_element
label_desc: Use image node_id 15 for calling a global function with example usage: test_not_weakly_connected() without return types