code: def process_object(obj):
      "Hook to process the object currently being displayed."
      invalid_options = OptsMagic.process_element(obj)
      if invalid_options:
          return invalid_options
      OutputMagic.info(obj)
  
imports: import sys
  import traceback
  from contextlib import contextmanager
  from functools import wraps
  import IPython
  from IPython import get_ipython
  from IPython.display import HTML
  import holoviews
  from ..core import AdjointLayout, CompositeOverlay, Dimensioned, DynamicMap, Empty, GridSpace, HoloMap, Layout, NdLayout, ViewableElement
  from ..core.io import FileArchive
  from ..core.options import AbbreviatedException, SkipRendering, Store, StoreOptions
  from ..core.traversal import unique_dimkeys
  from ..core.util import mimebundle_to_html
  from ..plotting import Plot
  from ..plotting.renderer import MIME_TYPES
  from ..util.settings import OutputSettings
  from .magics import OptsMagic, OutputMagic
label_desc: Use image node_id 2 for calling a global function with example usage: process_object(obj) and returns: invalid_options