class_docstr: Base support interface for NiftyReg commands.
class_docstr_tok: ["Base","support","interface","for","NiftyReg","commands","."]
code: def check_version(self):
      _version = self.version
      if not _version:
          raise Exception("Niftyreg not found")
      if Version(_version) < Version(self._min_version):
          err = "A later version of Niftyreg is required (%s < %s)"
          raise ValueError(err % (_version, self._min_version))
      if self.required_version:
          if Version(_version) != Version(self.required_version):
              err = "The version of NiftyReg differs from the required"
              err += "(%s != %s)"
              raise ValueError(err % (_version, self.required_version))
  
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 4 for calling the NiftyRegCommand obj's underlying member method code with example usage: obj.check_version() without return types