code: def _check_version():
      latest_version = get_latest_version()
      if latest_version is not None:
          if pkg_version.parse(
              str(version.__version__)
          ) < pkg_version.parse(latest_version):
              console.print(
                  f"A new version of dstack is available: [code]{latest_version}[/]\n"
              )
  
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 4 for calling a global function with example usage: _check_version() without return types