code: def _version_info_from_version(version):
      m = _version_re.match(version)
      if not m:
          raise Error(
              "could not convert '%s' version to version info" % version
          )
      version_info = []
      for g in m.groups():
          if g is None:
              break
          try:
              version_info.append(int(g))
          except ValueError:
              version_info.append(g)
      return tuple(version_info)
  
imports: import sys
  import os
  from os.path import exists, basename, splitext
  import re
  import codecs
  import logging
  import optparse
  import json
label_desc: Use image node_id 6 for calling a global function with example usage: _version_info_from_version(version) and returns: tuple