code: def run():
      """Run *mne_anonymize* command."""
      from mne.commands.utils import get_optparser
  
      parser = get_optparser(__file__)
  
      parser.add_option(
          "-f",
          "--file",
          type="string",
          dest="file",
          help="Name of file to modify.",
          metavar="FILE",
          default=None,
      )
      parser.add_option(
          "-o",
          "--output",
          type="string",
          dest="output",
          help="Name of anonymized output file."
          "`anon-` prefix is added to FILE if not given",
          metavar="OUTFILE",
          default=None,
      )
      parser.add_option(
          "--keep_his",
          dest="keep_his",
          action="store_true",
          help="Keep the HIS tag (not advised)",
          default=False,
      )
      parser.add_option(
          "-d",
          "--daysback",
          type="int",
          dest="daysback",
          help="Move dates in file backwards by this many days.",
          metavar="N_DAYS",
          default=None,
      )
      parser.add_option(
          "--overwrite",
          dest="overwrite",
          action="store_true",
          help="Overwrite input file.",
          default=False,
      )
  
      options, args = parser.parse_args()
      if options.file is None:
          parser.print_help()
          sys.exit(1)
  
      fname = options.file
      out_fname = options.output
      keep_his = options.keep_his
      daysback = options.daysback
      overwrite = options.overwrite
      if not fname.endswith(".fif"):
          raise ValueError(
              "%s does not seem to be a .fif file." % fname
          )
  
      mne_anonymize(fname, out_fname, keep_his, daysback, overwrite)
  
imports: import os.path
  import sys
  import mne
label_desc: Use image node_id 2 for calling a global function with example usage: run() without return types