def check_bounds(x, bounds):
    """Input validation for .
    Checks kappa and nu for consistent values and shapes.
    """
    if not isinstance(bounds, dict):
        raise TypeError('bounds should be a dictionary')
    assert x.shape[1] == len(bounds), 'bounds is of inconsistent size.'
    for key_value in bounds.items():
        values = key_value[1]
        if not (isinstance(values, tuple) or isinstance(values, list)):
            raise TypeError('bounds values should be stored in list or tuple')
        assert len(values) == 2, 'bounds is of inconsistent size.'
        inf, sup = values
        if isinstance(inf, str) or isinstance(sup, str):
            raise ValueError('bounds values should be numeric.')
        assert inf < sup, 'inf bound cannot be superior to sup bound.'
