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","."]
docstr: Returns the total number of samples in the dataset.
docstr_tok: ["Returns","the","total","number","of","samples","in","the","dataset","."]
code: def length(cls, dataset):
      """
      Returns the total number of samples in the dataset.
      """
      return np.prod(
          [len(d.points) for d in dataset.data.coords(dim_coords=True)],
          dtype=np.intp,
      )
  
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 18 for calling the CubeInterface obj's underlying member method code with example usage: obj.length(cls, dataset) and returns: np