code: def _version_from_version_info(version_info):
      v = str(version_info[0])
      state_dot_join = True
      for i in version_info[1:]:
          if state_dot_join:
              try:
                  int(i)
              except ValueError:
                  state_dot_join = False
              else:
                  pass
          if state_dot_join:
              v += "." + str(i)
          else:
              v += str(i)
      return v
  
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 5 for calling a global function with example usage: _version_from_version_info(version_info) and returns: v