class_docstr: Handle afni output type and version information.
docstr: Check and parse AFNI's version.
code: def parse_version(raw_info):
      """Check and parse AFNI's version."""
      version_stamp = raw_info.split("\n")[0].split("Version ")[1]
      if version_stamp.startswith("AFNI"):
          version_stamp = version_stamp.split("AFNI_")[1]
      elif version_stamp.startswith("Debian"):
          version_stamp = version_stamp.split("Debian-")[1].split("~")[
              0
          ]
      else:
          return None
  
      version = LooseVersion(version_stamp.replace("_", ".")).version[
          :3
      ]
      if version[0] < 1000:
          version[0] = version[0] + 2000
      return tuple(version)
  
imports: import os
  from sys import platform
  import shutil
  from looseversion import LooseVersion
  from ...None import logging
  from ...utils.filemanip import split_filename, fname_presuffix
  from ..base import CommandLine, traits, CommandLineInputSpec, isdefined, File, TraitedSpec, PackageInfo
  from ...external.due import BibTeX
label_desc: Use image node_id 1 for calling the Info obj's underlying member method code with example usage: obj.parse_version(raw_info) and returns: tuple, None