code: def cli_sanitize(input_filepath, save=False, delete=False):
      """Copies out a filename without spaces, or deletes that file.
      Will not work for directories with spaces in their names.
      """
  
      input_filepath = os.path.abspath(input_filepath)
      new_filepath = os.path.join(
          os.path.dirname(input_filepath),
          os.path.basename(input_filepath).replace(" ", "__"),
      )
  
      if delete:
          os.remove(new_filepath)
      if save:
          os.copy(input_filepath, new_filepath)
  
      return new_filepath
  
file_path: DeepNeuro/deepneuro/utilities/util.py
imports: import glob
  import math
  import numpy
  import os
  import fnmatch
  import sys
label_desc: Use image node_id 11 for calling a global function with example usage: cli_sanitize(input_filepath, save, delete) and returns: new_filepath