human
I wrote the below code

    print('Building    the    style    transfer    model..')
    (model, style_losses, content_losses) = get_style_model_and_losses(cnn, style_img, content_img, style_weight, content_weight)
    (input_param, optimizer) = get_input_param_optimizer(input_img)
    print('Optimizing..')
    run = [0]
    while (run[0] <= num_steps):
        def closure():
            input_param.data.clamp_(0, 1)
            optimizer.zero_grad()
            model(input_param)
            style_score = 0
            content_score = 0
            for sl in style_losses:
                style_score += sl.backward()
            for cl in content_losses:
                content_score += cl.backward()
            run[0] += 1
            if ((run[0] % 50) == 0):
                print('run    {}:'.format(run))
                print('Style    Loss    :    {:4f}    Content    Loss:    {:4f}'.format(style_score.data[0], content_score.data[0]))
                print()
            return (style_score + content_score)
        optimizer.step(closure)
    input_param.data.clamp_(0, 1)
    return input_param.data

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

def run_style_transfer(cnn, content_img, style_img, input_img, num_steps=300, style_weight=1000, content_weight=1):