code: def test_temp_filename() -> None:
      with patch(
          "bokeh.io.util.NamedTemporaryFile",
          **{
              "return_value.__enter__.return_value.name": "Junk.test",
          },
      ) as mock_tmp:
          r = biu.temp_filename("test")
          assert r == "Junk.test"
          assert mock_tmp.called
          assert mock_tmp.call_args[0] == ()
          assert mock_tmp.call_args[1] == {"suffix": ".test"}
  
file_path: bokeh/tests/unit/bokeh/io/test_util__io.py
imports: from __future__ import annotations
  import pytest
  import os
  from unittest.mock import MagicMock, patch
  import bokeh.io.util
label_desc: Use image node_id 2 for calling a global function with example usage: test_temp_filename() without return types