code: def test_with_args(self, mock_output_file: MagicMock) -> None:
      kwargs = dict(title="title", mode="cdn", root_dir="foo")
      bio.output_file("foo.html", **kwargs)
      assert mock_output_file.call_count == 1
      assert mock_output_file.call_args[0] == ("foo.html",)
      assert mock_output_file.call_args[1] == kwargs
  
file_path: bokeh/tests/unit/bokeh/io/test_output.py
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  from bokeh.io.state import curstate
  from bokeh.resources import Resources
  import bokeh.io.output
label_desc: Use image node_id 2 for calling the Test_output_file obj's underlying member method code with example usage: obj.test_with_args(mock_output_file) without return types