def validate(config):
    """ Checks validity of configuration. """
    config['max_depth'] = int(config['max_depth'])
    if isinstance(config['number'], int):
        config['number'] = tuple((config['number'],))
