code: def test_CustomJS_from_code_bad_file_type() -> None:
      with pytest.raises(RuntimeError):
          CustomJS.from_file(Path("some/module.css"))
  
file_path: bokeh/tests/unit/bokeh/models/test_callbacks__models.py
imports: from __future__ import annotations
  import pytest
  from pathlib import Path
  from unittest.mock import mock_open, patch
  from pytest import raises
  from bokeh.models import Slider
  from bokeh.models import CustomJS
label_desc: Use image node_id 4 for calling a global function with example usage: test_CustomJS_from_code_bad_file_type() without return types