code: def renderer(name):
      """
      Helper utility to access the active renderer for a given extension.
      """
      try:
          if name not in Store.renderers:
              prev_backend = Store.current_backend
              if Store.current_backend not in Store.renderers:
                  prev_backend = None
              extension(name)
              if prev_backend:
                  Store.set_current_backend(prev_backend)
          return Store.renderers[name]
      except ImportError as e:
          msg = "Could not find a {name!r} renderer, available renderers are: {available}."
          available = ", ".join(repr(k) for k in Store.renderers)
          raise ImportError(
              msg.format(name=name, available=available)
          ) from e
  
imports: import inspect
  import os
  import shutil
  import sys
  from collections import defaultdict
  from inspect import Parameter, Signature
  from pathlib import Path
  from types import FunctionType
  import param
  from pyviz_comms import extension
  from ..core import Dataset, Dimensioned, DynamicMap, HoloMap, Store, StoreOptions, ViewableElement, util
  from ..core.operation import Operation, OperationCallable
  from ..core.options import Keywords, Options, options_policy
  from ..core.overlay import Overlay
  from ..core.util import merge_options_to_dict
  from ..operation.element import function
  from ..streams import Params, Stream, streams_list_from_dict
  from .settings import OutputSettings, list_backends, list_formats
label_desc: Use image node_id 2 for calling a global function with example usage: renderer(name) and returns: Store