class_docstr: Base class for ANTS interfaces
code: def __init__(self, **inputs):
      super().__init__(**inputs)
      self.inputs.on_trait_change(
          self._num_threads_update, "num_threads"
      )
  
      if not isdefined(self.inputs.num_threads):
          self.inputs.num_threads = self._num_threads
      else:
          self._num_threads_update()
  
file_path: nipype/nipype/interfaces/ants/base.py
imports: import os
  from packaging.version import Version, parse
  from ...None import logging
  from ..base import CommandLine, CommandLineInputSpec, traits, isdefined, PackageInfo
label_desc: Use image node_id 1 to create a new ANTSCommand object from inherited base classes: CommandLine with example: obj = ANTSCommand()