code: def get_terminal_formatter(**opts):
      """Return the best formatter available in the current terminal."""
      if "256" in os.environ.get("TERM", ""):
          from pygments.formatters.terminal256 import (
              Terminal256Formatter,
          )
  
          formatter = Terminal256Formatter(**opts)
      else:
          from pygments.formatters.terminal import TerminalFormatter
  
          formatter = TerminalFormatter(**opts)
      return formatter
  
file_path: airflow/airflow/utils/code_utils.py
imports: from __future__ import annotations
  import functools
  import inspect
  import os
  from pathlib import Path
  from typing import Any
label_desc: Use image node_id 3 for calling a global function with example usage: get_terminal_formatter() and returns: formatter