human
I wrote the below code

    def wrapper(actual, predicted):
        if ((len(actual.shape) > 1) and (actual.shape[1] > 1)):
            actual = actual.argmax(axis=1)
        if ((len(predicted.shape) > 1) and (predicted.shape[1] > 1)):
            predicted = predicted.argmax(axis=1)
        return function(actual, predicted)
    return wrapper

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def unhot(function):