code: def check_for_updates():
      current_version = version.__version__
      if current_version:
          if _is_last_check_time_outdated():
              logger.debug("Checking for updates...")
              _check_version()
              _update_last_check_time()
  
file_path: dstack/src/dstack/_internal/cli/utils/updates.py
imports: import uuid
  from datetime import datetime
  from pathlib import Path
  from typing import Optional
  import requests
  from packaging import version
  from dstack import version
  from dstack._internal.cli.utils.common import console
  from dstack._internal.utils.logging import get_logger
label_desc: Use image node_id 8 for calling a global function with example usage: check_for_updates() without return types