class_docstr: Base support interface for NiftyReg commands.
class_docstr_tok: ["Base","support","interface","for","NiftyReg","commands","."]
code: def __init__(self, required_version=None, **inputs):
      self.num_threads = 1
      super().__init__(**inputs)
      self.required_version = required_version
      _version = self.version
      if _version:
          if self._min_version is not None and Version(
              _version
          ) < Version(self._min_version):
              msg = "A later version of Niftyreg is required (%s < %s)"
              iflogger.warning(msg, _version, self._min_version)
          if required_version is not None:
              if Version(_version) != Version(required_version):
                  msg = "The version of NiftyReg differs from the required"
                  msg += "(%s != %s)"
                  iflogger.warning(msg, _version, self.required_version)
      self.inputs.on_trait_change(self._omp_update, "omp_core_val")
      self.inputs.on_trait_change(self._environ_update, "environ")
      self._omp_update()
  
imports: import os
  from packaging.version import Version
  from ...None import logging
  from ..base import CommandLine, CommandLineInputSpec, traits, Undefined, PackageInfo
  from ...utils.filemanip import split_filename
label_desc: Use image node_id 1 to create a new NiftyRegCommand object from inherited base classes: CommandLine with example: obj = NiftyRegCommand(required_version)