def METHOD_NAME(dataset, indices=None):
    if indices is None:
        indices = range(len(dataset))
    ds_indices = [dataset.indices[i] for i in indices]
    return compute_aspect_ratios(dataset.dataset, ds_indices)