class_docstr: Collator is an NdMapping type which can merge any number
  of HoloViews components with whatever level of nesting
  by inserting the Collators key dimensions on the HoloMaps.
  If the items in the Collator do not contain HoloMaps
  they will be created. Collator also supports filtering
  of Tree structures and dropping of constant dimensions.
class_docstr_tok: ["Collator","is","an","NdMapping","type","which","can","merge","any","number","of","HoloViews","components","with","whatever","level","of","nesting","by","inserting","the","Collators","key","dimensions","on","the","HoloMaps",".","If","the","items","in","the","Collator","do","not","contain","HoloMaps","they","will","be","created",".","Collator","also","supports","filtering","of","Tree","structures","and","dropping","of","constant","dimensions","."]
code: def __init__(self, data=None, **params):
      if isinstance(data, Element):
          params = dict(get_param_values(data), **params)
          if "kdims" not in params:
              params["kdims"] = data.kdims
          if "vdims" not in params:
              params["vdims"] = data.vdims
          data = data.mapping()
      super().__init__(data, **params)
  
imports: from itertools import groupby
  import numpy
  import pandas
  import param
  from .dimension import Dimensioned, ViewableElement, asdim
  from .layout import Composable, Layout, NdLayout
  from .ndmapping import NdMapping
  from .overlay import CompositeOverlay, NdOverlay, Overlayable
  from .spaces import GridSpace, HoloMap
  from .tree import AttrTree
  from .util import get_param_values
label_desc: Use image node_id 1 to create a new Collator object from inherited base classes: NdMapping with example: obj = Collator(data)