add this or something equivalent to it before transposing the array: ```py if in_img.ndim == 2: in_img = np.expand_dims(in_img, axis=-1) ```
add this or something equivalent to it before transposing the array: