code: def test_general_default(self) -> None:
      r = warnings.formatwarning(
          "message", RuntimeWarning, "line", "lineno"
      )
      assert r == "line:lineno: RuntimeWarning: message\n"
  
file_path: bokeh/tests/unit/bokeh/test___init__.py
imports: from __future__ import annotations
  import pytest
  import re
  import warnings
  from bokeh.util.warnings import BokehDeprecationWarning, BokehUserWarning
  from tests.support.util.api import verify_all
  from tests.support.util.types import Capture
  import bokeh
label_desc: Use image node_id 2 for calling the TestWarnings obj's underlying member method code with example usage: obj.test_general_default() without return types