class_docstr: A Layout is an ViewableTree with ViewableElement objects as leaf
  values. Unlike ViewableTree, a Layout supports a rich display,
  displaying leaf items in a grid style layout. In addition to the
  usual ViewableTree indexing, Layout supports indexing of items by
  their row and column index in the layout.
  
  The maximum number of columns in such a layout may be controlled
  with the cols method.
class_docstr_tok: ["A","Layout","is","an","ViewableTree","with","ViewableElement","objects","as","leaf","values",".","Unlike","ViewableTree",",","a","Layout","supports","a","rich","display",",","displaying","leaf","items","in","a","grid","style","layout",".","In","addition","to","the","usual","ViewableTree","indexing",",","Layout","supports","indexing","of","items","by","their","row","and","column","index","in","the","layout",".","The","maximum","number","of","columns","in","such","a","layout","may","be","controlled","with","the","cols","method","."]
docstr: Clone object and apply new group and/or label.
  
  Applies relabeling to children up to the supplied depth.
  
  Args:
      label (str, optional): New label to apply to returned object
      group (str, optional): New group to apply to returned object
      depth (int, optional): Depth to which relabel will be applied
          If applied to container allows applying relabeling to
          contained objects up to the specified depth
  
  Returns:
      Returns relabelled object
code: def relabel(self, label=None, group=None, depth=1):
      """Clone object and apply new group and/or label.
  
      Applies relabeling to children up to the supplied depth.
  
      Args:
          label (str, optional): New label to apply to returned object
          group (str, optional): New group to apply to returned object
          depth (int, optional): Depth to which relabel will be applied
              If applied to container allows applying relabeling to
              contained objects up to the specified depth
  
      Returns:
          Returns relabelled object
      """
      return super().relabel(label, group, depth)
  
imports: import numpy
  import param
  from .None import traversal
  from .dimension import Dimension, Dimensioned, ViewableElement, ViewableTree
  from .ndmapping import NdMapping, UniformNdMapping
label_desc: Use image node_id 7 for calling the Layout obj's underlying member method code with example usage: obj.relabel(label, group, depth) and returns: super