code: def check_version(i):
      
  
      ok='yes'
  
      r=get_version({})
      if r['return']>0: return r
      version=r['version']
      version_str=r['version_str']
  
      lversion_str=i['version'].replace('dev','.1') # for compatibility with older versions
      lversion=lversion_str.split('.')
  
      # Comparing
      for q in range(0, len(version)):
          if len(lversion)<=q:
              break
  
          v=version[q]
          lv=lversion[q]
  
          # try int first, then try string
          try:
             if int(lv)>int(v):
                 ok='no'
                 break
          except Exception as e:
              pass
  
          if lv>v:
              ok='no'
              break
  
          if lv<v:
              break
  
      return {'return':0, 'ok':ok, 'current_version':version_str}
docs: Input:  {
                version      - your version (string)
              }
  
      Output: {
                return          - return code =  0
  
                ok              - if 'yes', your CK kernel version is outdated
                current_version - your CK kernel version
              }