class_docstr: The CubeInterface provides allows HoloViews to interact with iris
  Cube data. When passing an iris Cube to a HoloViews Element the
  init method will infer the dimensions of the Cube from its
  coordinates. Currently the interface only provides the basic
  methods required for HoloViews to work with an object.
class_docstr_tok: ["The","CubeInterface","provides","allows","HoloViews","to","interact","with","iris","Cube","data",".","When","passing","an","iris","Cube","to","a","HoloViews","Element","the","init","method","will","infer","the","dimensions","of","the","Cube","from","its","coordinates",".","Currently","the","interface","only","provides","the","basic","methods","required","for","HoloViews","to","work","with","an","object","."]
code: def shape(cls, dataset, gridded=False):
      if gridded:
          return dataset.data.shape
      else:
          return (cls.length(dataset), len(dataset.dimensions()))
  
imports: import sys
  import datetime
  from itertools import product
  import numpy
  from holoviews.core.data import Dataset
  from holoviews.core.data.interface import Interface, DataError
  from holoviews.core.data.grid import GridInterface
  from holoviews.core.dimension import Dimension, asdim
  from holoviews.core.element import Element
  from holoviews.core.ndmapping import NdMapping, item_check, sorted_context
  from holoviews.core.spaces import HoloMap
  from holoviews.core import util
label_desc: Use image node_id 6 for calling the CubeInterface obj's underlying member method code with example usage: obj.shape(cls, dataset, gridded) and returns: dataset, cls,  len