code: def test__ONLOAD() -> None:
      assert (
          bew._ONLOAD
          == """\
  (function() {
    const fn = function() {
  %(code)s
    };
    if (document.readyState != "loading") fn();
    else document.addEventListener("DOMContentLoaded", fn);
  })();\
  """
      )
  
file_path: bokeh/tests/unit/bokeh/embed/test_wrappers__embed.py
imports: from __future__ import annotations
  import pytest
  import bokeh.embed.wrappers
label_desc: Use image node_id 1 for calling a global function with example usage: test__ONLOAD() without return types