class_docstr: Uses mne_watershed_bem to get information from dicom directories
  
  Examples
  --------
  
  >>> from nipype.interfaces.mne import WatershedBEM
  >>> bem = WatershedBEM()
  >>> bem.inputs.subject_id = 'subj1'
  >>> bem.inputs.subjects_dir = '.'
  >>> bem.cmdline
  'mne watershed_bem --overwrite --subject subj1 --volume T1'
  >>> bem.run()  # doctest: +SKIP
code: def _list_outputs(self):
      outputs = self.output_spec().get()
      subjects_dir = self.inputs.subjects_dir
      subject_path = op.join(subjects_dir, self.inputs.subject_id)
      output_traits = self._outputs()
      mesh_paths = []
      for k in list(outputs.keys()):
          if k != "mesh_files":
              val = self._get_files(
                  subject_path,
                  k,
                  output_traits.traits()[k].loc,
                  output_traits.traits()[k].altkey,
              )
              if val:
                  value_list = simplify_list(val)
                  if isinstance(value_list, list):
                      out_files = []
                      for value in value_list:
                          out_files.append(op.abspath(value))
                  elif isinstance(value_list, (str, bytes)):
                      out_files = op.abspath(value_list)
                  else:
                      raise TypeError
                  outputs[k] = out_files
                  if not k.rfind("surface") == -1:
                      mesh_paths.append(out_files)
      outputs["mesh_files"] = mesh_paths
      return outputs
  
file_path: nipype/nipype/interfaces/mne/base.py
imports: import os.path
  import glob
  from ...None import logging
  from ...utils.filemanip import simplify_list
  from ..base import traits, File, Directory, TraitedSpec, OutputMultiPath
  from ..freesurfer.base import FSCommand, FSTraitedSpec
label_desc: Use image node_id 2 for calling the WatershedBEM obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs