code: def test_curdoc_from_curstate() -> None:
      assert bid.curdoc() is curstate().document
  
file_path: bokeh/tests/unit/bokeh/io/test_doc.py
imports: from __future__ import annotations
  import pytest
  import weakref
  from bokeh.document import Document
  from bokeh.io.state import curstate
  import bokeh.io.doc
label_desc: Use image node_id 1 for calling a global function with example usage: test_curdoc_from_curstate() without return types