code: def is_terminal_support_colors() -> bool:
      """Try to determine if the current terminal supports colors."""
      if sys.platform == "win32":
          return False
      if not is_tty():
          return False
      if "COLORTERM" in os.environ:
          return True
      term = os.environ.get("TERM", "dumb").lower()
      if term in ("xterm", "linux") or "color" in term:
          return True
      return False
  
file_path: airflow/airflow/utils/platform.py
imports: from __future__ import annotations
  import getpass
  import logging
  import os
  import pkgutil
  import platform
  import sys
  from airflow.compat.functools import cache
label_desc: Use image node_id 2 for calling a global function with example usage: is_terminal_support_colors() and returns: False, False, False, True, True