def is_valid_partition(name, partition, **kwargs):
    if name != 'swap' and not name.startswith('/'):
        logging.debug(
            '%s is not started with / or swap', name
        )
        return False
    if 'size' not in partition and 'percentage' not in partition:
        logging.debug(
            '%s partition does not contain sie or percentage',
            name
        )
        return False
    return True
_dedentlines(lines, tabsize=8, skip_first_line=False) -> dedented lines
dataset/ETHPy150Open openstack/compass-core/compass/db/validator.py/is_valid_partition--crossover with--dataset/ETHPy150Open an0/Letterpress/code/markdown2/test/test_markdown2.py/_dedentlines