def METHOD_NAME(idx):
    sample = dataset[idx]
    preds = model(sample.inputs)
    curves = actors.update_curves(preds, sample)
    ax.relim()
    ax.autoscale_view(True, True, True)
    return curves