human
I wrote the below code

    f = tt.flatten(f)
    idx = tt.arange(f.shape[0], dtype='int32')
    def grad_i(i):
        return gradient1(f[i], v)
    return theano.map(grad_i, idx)[0]

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

def jacobian1(f, v):