<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def length(cls, dataset):
 """ Returns the total number of samples in the dataset. """

        return np.product([len(d.points) for d in dataset.data.coords(dim_coords=True)], dtype=np.intp)