import torch


def select_n_random(data, n=100):
    """
    Selects n random data points and their corresponding labels from a dataset
    """
    perm = torch.randperm(len(data))
    return data[perm][:n]