code: def test_log_level(self) -> None:
      r = resources.Resources()
      for level in LOG_LEVELS:
          r.log_level = level
          assert r.log_level == level
          if not r.dev:
              assert r.js_raw[-1] == f'Bokeh.set_log_level("{level}");'
      with pytest.raises(ValueError):
          setattr(r, "log_level", "foo")
  
imports: from __future__ import annotations
  import pytest
  import os
  import re
  import subprocess
  import sys
  import bs4
  from packaging.version import Version
  import bokeh.util.version
  from bokeh.models import Model
  from bokeh.resources import RuntimeMessage, _get_cdn_urls
  from bokeh.settings import LogLevel, settings
  import bokeh.resources
label_desc: Use image node_id 5 for calling the TestResources obj's underlying member method code with example usage: obj.test_log_level() without return types