code: def test_view_bad_new() -> None:
      with pytest.raises(RuntimeError) as e:
          bub.view("foo", new="junk")  # type: ignore
          assert (
              str(e)
              == "invalid 'new' value passed to view: 'junk', valid values are: 'same', 'window', or 'tab'"
          )
  
file_path: bokeh/tests/unit/bokeh/util/test_browser.py
imports: from __future__ import annotations
  import pytest
  import os
  import sys
  import webbrowser
  from unittest.mock import MagicMock, patch
  from tests.support.util.env import envset
  import bokeh.util.browser
label_desc: Use image node_id 7 for calling a global function with example usage: test_view_bad_new() without return types