class_docstr: Experimental Slicer wrapper. Work in progress.
code: def _grab_xml(self, module):
      cmd = CommandLine(
          command="Slicer3",
          resource_monitor=False,
          args="--launch %s --xml" % module,
      )
      ret = cmd.run()
      if ret.runtime.returncode == 0:
          return xml.dom.minidom.parseString(ret.runtime.stdout)
      else:
          raise Exception(
              cmd.cmdline + " failed:\n%s" % ret.runtime.stderr
          )
  
file_path: nipype/nipype/interfaces/dynamic_slicer.py
imports: import os
  import warnings
  import xml.dom.minidom
  from .base import CommandLine, CommandLineInputSpec, DynamicTraitedSpec, traits, Undefined, File, isdefined
label_desc: Use image node_id 1 for calling the SlicerCommandLine obj's underlying member method code with example usage: obj._grab_xml(module) and returns: xml