code: def test_cutoff_disjoint_paths():
      G = nx.icosahedral_graph()
      for flow_func in flow_funcs:
          kwargs = {"flow_func": flow_func}
          errmsg = f"Assertion failed in function: {flow_func.__name__}"
          for cutoff in [2, 4]:
              kwargs["cutoff"] = cutoff
              # edge disjoint paths
              edge_dpaths = list(
                  nx.edge_disjoint_paths(G, 0, 6, **kwargs)
              )
              assert are_edge_disjoint_paths(G, edge_dpaths), errmsg
              assert cutoff == len(edge_dpaths), errmsg
              # node disjoint paths
              node_dpaths = list(
                  nx.node_disjoint_paths(G, 0, 6, **kwargs)
              )
              assert are_node_disjoint_paths(G, node_dpaths), errmsg
              assert cutoff == len(node_dpaths), errmsg
  
imports: import pytest
  import networkx
  from networkx.algorithms import flow
  from networkx.utils import pairwise
label_desc: Use image node_id 10 for calling a global function with example usage: test_cutoff_disjoint_paths() without return types