import logging


def _valid_variable_splits(variable_splits, variables):
    """
    Validate variable splits
    """
    if set(variable_splits.keys()) == set(variables):
        return True
    else:
        logging.warning("Variable splits are incorrect - wrong set of variables supplied. Parameter is ignored")
        return False