code: def test_build(self) -> None:
      r0 = resources.Resources(mode="cdn")
      settings.resources = "inline"
      try:
          r = resources.Resources.build(r0)
          assert r is r0
      finally:
          del settings.resources
  
      r1 = "cdn"
      settings.resources = "inline"
      try:
          r = resources.Resources.build(r1)
          assert r.mode == "cdn"
      finally:
          del settings.resources
  
      r2 = None
      settings.resources = "inline"
      try:
          r = resources.Resources.build(r2)
          assert r.mode == "inline"
      finally:
          del settings.resources
  
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 4 for calling the TestResources obj's underlying member method code with example usage: obj.test_build() without return types