code: def _tuple_from_version(version):
      def _intify(s):
          try:
              return int(s)
          except ValueError:
              return s
  
      return tuple(_intify(b) for b in version.split("."))
  
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 3 for calling a global function with example usage: _tuple_from_version(version) and returns: tuple, int, s