def shape_validator(data):
    """
    shape_validator validates the shape of the input data

    :param data: numpy array to be validated
    :type data: np.ndarray
    """

    shape = data.shape

    if len(shape) > 2:
        raise ValueError(f"input data:\n{data}\nshould have rank 1 or 2.")
    elif len(shape) == 2 and shape[-1] > 12:
        raise ValueError(
            f"input data:\n{data}\nshould have less or equal to 12 columns."
        )
    elif len(shape) == 1:
        data = data.reshape(len(data), 1)

    return data.shape