code: def run():
      """Run command."""
      from mne.commands.utils import get_optparser
  
      parser = get_optparser(__file__)
  
      parser.add_option(
          "-s",
          "--subject",
          dest="subject",
          help="Subject name",
          default=None,
      )
      parser.add_option(
          "-d",
          "--subjects-dir",
          dest="subjects_dir",
          help="Subjects directory",
          default=None,
      )
      parser.add_option(
          "-3",
          "--flash30",
          "--noflash30",
          dest="flash30",
          action="callback",
          callback=_vararg_callback,
          help=(
              "The 30-degree flip angle data. If no argument do "
              "not use flash30. If arguments are given, them as "
              "file names."
          ),
      )
      parser.add_option(
          "-5",
          "--flash5",
          dest="flash5",
          action="callback",
          callback=_vararg_callback,
          help=(
              "Path to the multiecho flash 5 images. "
              "Can be one file or one per echo."
          ),
      )
      parser.add_option(
          "-r",
          "--registered",
          dest="registered",
          action="store_true",
          default=False,
          help=(
              "Set if the Flash MRI images have already "
              "been registered with the T1.mgz file."
          ),
      )
      parser.add_option(
          "-n",
          "--noconvert",
          dest="noconvert",
          action="store_true",
          default=False,
          help=(
              "[DEPRECATED] Assume that the Flash MRI images "
              "have already been converted to mgz files"
          ),
      )
      parser.add_option(
          "-u",
          "--unwarp",
          dest="unwarp",
          action="store_true",
          default=False,
          help=(
              "Run grad_unwarp with -unwarp <type> "
              "option on each of the converted data sets"
          ),
      )
      parser.add_option(
          "-o",
          "--overwrite",
          dest="overwrite",
          action="store_true",
          default=False,
          help="Write over existing .surf files in bem folder",
      )
      parser.add_option(
          "-v",
          "--view",
          dest="show",
          action="store_true",
          help="Show BEM model in 3D for visual inspection",
          default=False,
      )
      parser.add_option(
          "--copy",
          dest="copy",
          help="Use copies instead of symlinks for surfaces",
          action="store_true",
      )
      parser.add_option(
          "-p",
          "--flash-path",
          dest="flash_path",
          default=None,
          help="[DEPRECATED] The directory containing flash5.mgz "
          "files (defaults to "
          "$SUBJECTS_DIR/$SUBJECT/mri/flash/parameter_maps",
      )
  
      options, _ = parser.parse_args()
  
      subject = options.subject
      subjects_dir = options.subjects_dir
      flash5 = options.flash5
      if flash5 is None or len(flash5) == 0:
          flash5 = True
      flash30 = options.flash30
      if flash30 is None:
          flash30 = True
      elif len(flash30) == 0:
          flash30 = False
      register = not options.registered
      unwarp = options.unwarp
      overwrite = options.overwrite
      show = options.show
      copy = options.copy
  
      if options.subject is None:
          parser.print_help()
          raise RuntimeError("The subject argument must be set")
  
      flash5_img = convert_flash_mris(
          subject=subject,
          subjects_dir=subjects_dir,
          flash5=flash5,
          flash30=flash30,
          unwarp=unwarp,
          verbose=True,
      )
      make_flash_bem(
          subject=subject,
          subjects_dir=subjects_dir,
          overwrite=overwrite,
          show=show,
          copy=copy,
          register=register,
          flash5_img=flash5_img,
          verbose=True,
      )
  
imports: import mne
  from mne.bem import convert_flash_mris, make_flash_bem
label_desc: Use image node_id 2 for calling a global function with example usage: run() without return types