code: def remove_all_edges(ntwk):
      ntwktmp = ntwk.copy()
      edges = list(ntwktmp.edges())
      for edge in edges:
          ntwk.remove_edge(edge[0], edge[1])
      return ntwk
  
imports: import os.path
  import pickle
  import numpy
  import networkx
  from ...None import logging
  from ...utils.filemanip import split_filename
  from ..base import BaseInterface, BaseInterfaceInputSpec, traits, File, TraitedSpec, InputMultiPath, OutputMultiPath, isdefined
  from .base import have_cmp
label_desc: Use image node_id 3 for calling a global function with example usage: remove_all_edges(ntwk) and returns: ntwk