code: def test_argument_checks(self) -> None:
      with pytest.raises(ValueError):
          resources.Resources("foo")
  
      for mode in (
          "inline",
          "cdn",
          "server",
          "server-dev",
          "absolute",
          "absolute-dev",
      ):
          with pytest.raises(ValueError):
              resources.Resources(mode, root_dir="foo")
  
      for mode in (
          "inline",
          "server",
          "server-dev",
          "relative",
          "relative-dev",
          "absolute",
          "absolute-dev",
      ):
          with pytest.raises(ValueError):
              resources.Resources(mode, version="foo")
  
      for mode in (
          "inline",
          "cdn",
          "relative",
          "relative-dev",
          "absolute",
          "absolute-dev",
      ):
          with pytest.raises(ValueError):
              resources.Resources(mode, root_url="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 20 for calling the TestResources obj's underlying member method code with example usage: obj.test_argument_checks() without return types