code: def layout(self, dimensions=None, **kwargs):
          
          return self.groupby(dimensions, container_type=NdLayout, **kwargs)
docs: Groups data by supplied dimension(s) laying the groups along
          the dimension(s) out in a NdLayout.
  
          Args:
          dimensions: Dimension/str or list
              Dimension or list of dimensions to group by
  
          Returns:
          layout: NdLayout
              NdLayout with supplied dimensions