code: def test_edge_cutset_random_graphs():
      for flow_func in flow_funcs:
          errmsg = f"Assertion failed in function: {flow_func.__name__}"
          for i in range(3):
              G = nx.fast_gnp_random_graph(50, 0.25, seed=42)
              if not nx.is_connected(G):
                  ccs = iter(nx.connected_components(G))
                  start = arbitrary_element(next(ccs))
                  G.add_edges_from(
                      (start, arbitrary_element(c)) for c in ccs
                  )
              cutset = nx.minimum_edge_cut(G, flow_func=flow_func)
              assert nx.edge_connectivity(G) == len(cutset), errmsg
              G.remove_edges_from(cutset)
              assert not nx.is_connected(G), errmsg
  
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 10 for calling a global function with example usage: test_edge_cutset_random_graphs() without return types