code: def compare_version(version1, version2):
      """Compare version number, such as 1.1.1 and 1.1b2.0."""
      v1, v2 = list(), list()
  
      for item in version1.split("."):
          if item.isdigit():
              v1.append(int(item))
          else:
              v1.extend([i for i in _group_alnum(item)])
      for item in version2.split("."):
          if item.isdigit():
              v2.append(int(item))
          else:
              v2.extend([i for i in _group_alnum(item)])
  
      while v1 and v2:
          item1, item2 = v1.pop(0), v2.pop(0)
          if item1 > item2:
              return 1
          elif item1 < item2:
              return -1
  
      if v1:
          return 1
      elif v2:
          return -1
      return 0
  
file_path: clearml/clearml/utilities/pigar/utils.py
imports: from __future__ import print_function, division, absolute_import
  import os
  import re
  import sys
  import difflib
label_desc: Use image node_id 3 for calling a global function with example usage: compare_version(version1, version2) and returns: int, int, int, unknown, unknown