code: def fixup_download_url(url):
      ver = re.search("3[0-9]{6}", url)
      if ver:
          ver = int(ver.group(0))
          if ver >= 3071600:
              if ver >= 3220000:
                  year = "2018"
              elif ver >= 3160000:
                  year = "2017"
              elif ver >= 3100000:
                  year = "2016"
              elif ver >= 3080800:
                  year = "2015"
              elif ver >= 3080300:
                  year = "2014"
              else:
                  year = "2013"
              if "/" + year + "/" not in url:
                  url = url.split("/")
                  url.insert(3, year)
                  return "/".join(url)
      return url
  
imports: import os
  import sys
  import shlex
  import glob
  import re
  import time
  import zipfile
  import tarfile
  from distutils.command import build_ext, build, sdist
label_desc: Use image node_id 4 for calling a global function with example usage: fixup_download_url(url) and returns: url, str