code: def test_main(mock_main: MagicMock) -> None:
      import sys
  
      old_argv = sys.argv
      sys.argv = ["foo", "bar"]
      bm.main()
      assert mock_main.call_count == 1
      assert mock_main.call_args[0] == (["foo", "bar"],)
      assert mock_main.call_args[1] == {}
      sys.argv = old_argv
  
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  from tests.support.util.api import verify_all
  import bokeh.__main__
label_desc: Use image node_id 1 for calling a global function with example usage: test_main(mock_main) without return types