code: def _formatwarning(message, category, filename, lineno, line=None):
      from .util.warnings import (
          BokehDeprecationWarning,
          BokehUserWarning,
      )
  
      if category not in (BokehDeprecationWarning, BokehUserWarning):
          return original_formatwarning(
              message, category, filename, lineno, line
          )
      return f"{category.__name__}: {message}\n"
  
file_path: bokeh/src/bokeh/__init__.py
imports: from __future__ import annotations
  import logging
  import importlib.metadata
  from .None import sampledata
  from .util import logconfig
  import warnings
  from .util.warnings import BokehDeprecationWarning, BokehUserWarning
label_desc: Use image node_id 2 for calling a global function with example usage: _formatwarning(message, category, filename, lineno, line) and returns: category, str, message, str, original_formatwarning