code: def decollate(hvobj):
      """
      Decollate transforms a potentially nested dynamic HoloViews object into single
      DynamicMap that returns a non-dynamic HoloViews object. All nested streams in the
      input object are copied and attached to the resulting DynamicMap.
  
      Args:
          hvobj: Holoviews object
  
      Returns:
          DynamicMap
      """
      kdims = []
      original_streams = []
      streams = []
      stream_mapping = {}
      initialize_dynamic(hvobj)
      expr = to_expr_extract_streams(
          hvobj, kdims, streams, original_streams, stream_mapping
      )
  
      expr_fn = expr_to_fn_of_stream_contents(expr, nkdims=len(kdims))
      callback = Callable(expr_fn, stream_mapping=stream_mapping)
      return DynamicMap(
          callback,
          kdims=kdims,
          streams=streams,
          positional_stream_args=True,
      )
  
file_path: holoviews/holoviews/core/decollate.py
imports: from collections import namedtuple
  import param
  from ..None import Callable, DynamicMap, Element, GridSpace, HoloMap, Layout, NdOverlay, Overlay
  from ..plotting.util import initialize_dynamic
  from ..streams import Derived, Stream
  from .None import AdjointLayout, ViewableTree
  from .operation import OperationCallable
label_desc: Use image node_id 3 for calling a global function with example usage: decollate(hvobj) and returns: DynamicMap