class_docstr: Handle MINC version information.
  
  version refers to the version of MINC on the system
docstr: Check for minc version on the system
  
  Parameters
  ----------
  None
  
  Returns
  -------
  version : dict
     Version number as dict or None if MINC not found
code: def version():
      """Check for minc version on the system
  
      Parameters
      ----------
      None
  
      Returns
      -------
      version : dict
         Version number as dict or None if MINC not found
  
      """
      try:
          clout = CommandLine(
              command="mincinfo",
              args="-version",
              terminal_output="allatonce",
          ).run()
      except OSError:
          return None
  
      out = clout.runtime.stdout
  
      def read_program_version(s):
          if "program" in s:
              return s.split(":")[1].strip()
          return None
  
      def read_libminc_version(s):
          if "libminc" in s:
              return s.split(":")[1].strip()
          return None
  
      def read_netcdf_version(s):
          if "netcdf" in s:
              return " ".join(s.split(":")[1:]).strip()
          return None
  
      def read_hdf5_version(s):
          if "HDF5" in s:
              return s.split(":")[1].strip()
          return None
  
      versions = {
          "minc": None,
          "libminc": None,
          "netcdf": None,
          "hdf5": None,
      }
  
      for l in out.split("\n"):
          for name, f in [
              ("minc", read_program_version),
              ("libminc", read_libminc_version),
              ("netcdf", read_netcdf_version),
              ("hdf5", read_hdf5_version),
          ]:
              if f(l) is not None:
                  versions[name] = f(l)
  
      return versions
  
file_path: nipype/nipype/interfaces/minc/base.py
imports: import os
  import os.path
  import warnings
  from ..base import CommandLine
label_desc: Use image node_id 1 for calling the Info obj's underlying member method code with example usage: obj.version() and returns: versions, None, None, None, None, None, s, s, str, s