human
Here's a good function header given the following:
I wrote the below code

    def correct_roundoff(x, dpi, n):
        if ((int((x * dpi)) % n) != 0):
            if ((int((np.nextafter(x, np.inf) * dpi)) % n) == 0):
                x = np.nextafter(x, np.inf)
            elif ((int((np.nextafter(x, (- np.inf)) * dpi)) % n) == 0):
                x = np.nextafter(x, (- np.inf))
        return x
    wnew = ((int(((w * dpi) / n)) * n) / dpi)
    hnew = ((int(((h * dpi) / n)) * n) / dpi)
    return (correct_roundoff(wnew, dpi, n), correct_roundoff(hnew, dpi, n))

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

def adjusted_figsize(w, h, dpi, n):