def cal_num_data_points(data: dict) -> int:
    """ Calculate the number of data points in a dataset

    Parameters
    ----------
    data
        dataset

    Returns
    -------
    int
        the number of data points in a dataset
    """
    return sum([len(data_u) for u, data_u in data.items()])