code: def process_validation_issues(issues: ValidationIssues) -> None:
      """Log warning and error messages for a dictionary containing warnings and error messages.
  
      Args:
          issues (ValidationIssue) : A collection of all warning and error messages
  
      Returns:
          None
  
      This function will emit log warning and error messages for all error or
      warning conditions in the dictionary. For example, a dictionary
      containing a warning for empty layout will trigger a warning:
  
      .. code-block:: python
  
          >>> process_validation_issues(validations)
          W-1002 (EMPTY_LAYOUT): Layout has no children: Row(id='2404a029-c69b-4e30-9b7d-4b7b6cdaad5b', ...)
  
      """
      errors = issues.error
      warnings = [
          issue
          for issue in issues.warning
          if not is_silenced(Warning.get_by_code(issue.code))
      ]
  
      warning_messages: list[str] = []
      for warning in sorted(warnings, key=lambda warning: warning.code):
          msg = f"W-{warning.code} ({warning.name}): {warning.text}: {warning.extra}"
          warning_messages.append(msg)
          log.warning(msg)
  
      error_messages: list[str] = []
      for error in sorted(errors, key=lambda error: error.code):
          msg = f"E-{error.code} ({error.name}): {error.text}: {error.extra}"
          error_messages.append(msg)
          log.error(msg)
  
      if settings.validation_level() == "errors":
          if len(errors):
              raise RuntimeError(
                  f"Errors encountered during validation: {error_messages}"
              )
      elif settings.validation_level() == "all":
          if len(errors) or len(warnings):
              raise RuntimeError(
                  f"Errors encountered during validation: {error_messages + warning_messages}"
              )
  
file_path: bokeh/src/bokeh/core/validation/check.py
imports: from __future__ import annotations
  import logging
  import contextlib
  from typing import Iterable, Iterator, Literal, Protocol
  from ...model import Model
  from ...settings import settings
  from ...util.dataclasses import dataclass
  from .issue import Warning
label_desc: Use image node_id 5 for calling a global function with example usage: process_validation_issues(issues) without return types