code: def get_all_examples(config: _pytest.config.Config) -> list[Example]:
      global _examples
      if _examples is None:
          _examples = collect_examples(
              join(BASE_DIR, "tests", "examples.yaml")
          )
  
          for example in _examples:
              if config.option.no_js:
                  example.flags |= Flags.no_js
  
      return _examples
  
imports: from __future__ import annotations
  import pytest
  import os
  import signal
  import subprocess
  import sys
  import time
  from os.path import abspath, basename, dirname, join, relpath
  from types import FrameType
  from typing import TYPE_CHECKING, Iterator, Literal, NoReturn, Union
  import _pytest.config
  import _pytest.mark
  import _pytest.python
  from bokeh.client import push_session
  from bokeh.command.util import build_single_handler_application
  from bokeh.core.types import ID
  from bokeh.server.callbacks import NextTickCallback, PeriodicCallback, TimeoutCallback
  from bokeh.util.terminal import fail, info, red, warn, white
  from tests.support.util.examples import Example, Flags, collect_examples
  from tests.support.util.screenshot import JSResult, run_in_chrome
label_desc: Use image node_id 1 for calling a global function with example usage: get_all_examples(config) and returns: _examples