code: def get_class(view_model_name: str) -> type[Model]:
      """Look up a Bokeh model class, given its view model name.
  
      Args:
          view_model_name (str) :
              A view model name for a Bokeh model to look up
  
      Returns:
          Model: the model class corresponding to ``view_model_name``
  
      Raises:
          KeyError, if the model cannot be found
  
      Example:
  
          .. code-block:: python
  
              >>> from bokeh.model import get_class
              >>> get_class("Range1d")
              <class 'bokeh.models.ranges.Range1d'>
  
      """
  
      # In order to look up from the model catalog that Model maintains, it
      # has to be created first. These imports ensure that all built-in Bokeh
      # models are represented in the catalog.
      from .. import models  # noqa: F401
      from .. import plotting  # noqa: F401
      from .model import Model
  
      known_models = Model.model_class_reverse_map
      if view_model_name in known_models:
          return known_models[view_model_name]
      else:
          raise KeyError(
              f"View model name '{view_model_name}' not found"
          )
  
file_path: bokeh/src/bokeh/model/util.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Callable
  from ..core.has_props import HasProps, Qualified
  from ..util.dataclasses import entries, is_dataclass
label_desc: Use image node_id 3 for calling a global function with example usage: get_class(view_model_name) and returns: known_models