code: def test_show_doesn_not_adds_obj_to_curdoc(m) -> None:
      curstate().reset()
      assert curstate().document.roots == []
      p = Plot()
      bis.show(p)
      assert curstate().document.roots == []
      p = Plot()
      bis.show(p)
      assert curstate().document.roots == []
  
file_path: bokeh/tests/unit/bokeh/io/test_showing.py
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, Mock, patch
  from bokeh.application.application import Application
  from bokeh.io.doc import curdoc
  from bokeh.io.output import output_notebook
  from bokeh.io.state import State, curstate
  from bokeh.models import ColumnDataSource, GlyphRenderer, Plot
  import bokeh.io.showing
label_desc: Use image node_id 4 for calling a global function with example usage: test_show_doesn_not_adds_obj_to_curdoc(m) without return types