code: def check_date():
      last_checked = get_check_update()
      if last_checked == "Disabled":
          # Updating is disabled
          return False
      elif last_checked == "Never":
          return True
      today = datetime.date.today()
      last_checked = datetime.datetime.strptime(
          last_checked, "%Y%m%d"
      ).date()
      if (last_checked - today).days >= 7:
          return True
      else:
          return False
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/checkupdate.py
imports: import datetime
  import requests
  import wx
  from cellprofiler_core.preferences import get_check_update, set_check_update, get_check_update_bool
  from cellprofiler import __version__
label_desc: Use image node_id 3 for calling a global function with example usage: check_date() and returns: False, True, False, True