@classmethod<EOL><INDENT>def length(cls, dataset):<DEDENT>
return np.product([len(d.points) for d in dataset.data.coords(dim_coords=True)], dtype=np.intp)<EOL>
Returns the total number of samples in the dataset.