human
I wrote the below code

    fig = plt.figure()
    ax = fig.add_subplot(1, 1, 1)
    ax.matshow(image, cmap=matplotlib.cm.binary)
    plt.xticks(np.array([]))
    plt.yticks(np.array([]))
    plt.show()
    rot_image = np.zeros((28, 28))
    theta = ((15 * np.pi) / 180)
    def to_xy(j, k):
        return ((k - 13), ((- j) + 14))
    def to_jk(x, y):
        return (((- y) + 14), (x + 13))
    def image_value(image, x, y):
        (j, k) = to_jk(x, y)
        return image[(j, k)]
    for j in range(28):
        for k in range(28):
            (x, y) = to_xy(j, k)
            x1 = ((np.cos(theta) * x) + (np.sin(theta) * y))
            y1 = (((- np.sin(theta)) * x) + (np.cos(theta) * y))
            x2 = np.floor(x1)
            delta_x = (x1 - x2)
            y2 = np.floor(y1)
            delta_y = (y1 - y2)
            if ((x2 < (-13)) or (x2 > 13) or (y2 < (-13)) or (y2 > 13)):
                continue
            value = ((((((1 - delta_x) * (1 - delta_y)) * image_value(image, x2, y2)) + (((1 - delta_x) * delta_y) * image_value(image, x2, (y2 + 1)))) + ((delta_x * (1 - delta_y)) * image_value(image, (x2 + 1), y2))) + ((delta_x * delta_y) * image_value(image, (x2 + 1), (y2 + 1))))
            rot_image[(j, k)] = (1.3 * value)
    plot_mnist_digit(rot_image)

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

def plot_rotated_image(image):