def undo_reshape_padding(image, orig_shape):
    """
    Undoes the padding done by the `reshape` function in `utils.shape_io`
    Args:
        image: numpy array that was reshaped to a larger size using reshape
        orig_shape: original shape before padding (do not include the channels)
    Returns:
        the reshaped image
    """
    return image[:orig_shape[0], :orig_shape[1], :orig_shape[2]]