code: def test_external_js_and_css_resource_ordering() -> None:
      class ZClass(Model):
          __javascript__ = "z_class"
  
      class AClass(Model):
          __javascript__ = "a_class"
  
      r = resources.Resources()
  
      # a_class is before z_class because they're sorted alphabetically
      assert r.js_files.index("a_class") < r.js_files.index("z_class")
  
      # The files should be in the order defined by the lists in CustomModel2 and CustomModel3
      assert r.css_files.index("external_css_3") > r.css_files.index(
          "external_css_2"
      )
      assert r.js_files.index("external_js_3") > r.js_files.index(
          "external_js_2"
      )
  
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 3 for calling a global function with example usage: test_external_js_and_css_resource_ordering() without return types