code: def _log_unknown_exceptions() -> None:
      from dvc.info import get_dvc_info
      from dvc.ui import ui
      from dvc.utils import colorize
  
      logger.exception("unexpected error")
      if logger.isEnabledFor(logging.DEBUG):
          logger.debug(
              "Version info for developers:\n%s", get_dvc_info()
          )
  
      q = colorize("Having any troubles?", "yellow")
      link = colorize("https://dvc.org/support", "blue")
      footer = (
          f"\n{q} Hit us up at {link}, we are always happy to help!"
      )
      ui.error_write(footer)
  
file_path: dvc/dvc/cli/__init__.py
imports: import logging
  import sys
  from typing import Optional
  from dvc.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: _log_unknown_exceptions() without return types