human
I wrote the below code

    def ctc_step(y_true_step, y_pred_step, input_length_step, label_length_step):
        y_pred_step = y_pred_step[0:input_length_step[0]]
        y_true_step = y_true_step[0:label_length_step[0]]
        return ctc_cost(y_pred_step, y_true_step)
    (ret, _) = theano.scan(fn=ctc_step, outputs_info=None, sequences=[y_true, y_pred, input_length, label_length])
    ret = ret.dimshuffle('x', 0)
    return ret

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

def ctc_batch_cost(y_true, y_pred, input_length, label_length):