def acck(actual, prediction, k=5, verbose=True):
    """Computes accuracy at k
    Input:
    actual: list or 1D numpy array of true labels
    prediction: list of lists or 2D numpy array of predictions
    """
    accuracy_count = 0
    for i, true_lbl in enumerate(actual):
        if true_lbl in prediction[i][:k]:
            accuracy_count += 1
    accuracy = accuracy_count / len(actual)
    if verbose:
        print(
            'Predicting {} labels per input. Correct {} out of {}. ACC@{} %{:.2f}'.format(
                k, accuracy_count, len(actual), k, accuracy * 100
            )
        )
    return accuracy