code: def get_latest_version() -> Optional[str]:
      latest_version_url = (
          f"https://get.dstack.ai/{_get_channel()}/latest-version"
      )
      try:
          response = requests.get(
              latest_version_url,
              params={
                  "anonymous_installation_id": anonymous_installation_id(),
                  "version": version.__version__,
              },
          )
          if response.status_code == 200:
              return response.text.strip()
          else:
              return None
      except Exception:
          return None
  
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 2 for calling a global function with example usage: get_latest_version() and returns: response, None, None