def METHOD_NAME(example, *, n=8, cleanup=True, max_errors=0, log_level='INFO', area=None, additional_args=None):
    run_dir = MY_DIR / f'run_{example.name}'
    if run_dir.exists() and run_dir.is_dir():
        shutil.rmtree(run_dir)
    run_dir.mkdir(parents=True)
    os.chdir(run_dir)
    args = [str(example), '-l', log_level, '-n', str(n)]
    if additional_args:
        for elem in additional_args:
            if elem:
                args.append(elem)
    results = align.CmdlineParser().parse_args(args)
    assert results is not None, f"{example.name}: No results generated"
    for result in results:
        _, variants = result
        for (k, v) in variants.items():
            assert 'errors' in v, f"No Layouts were generated for {example.name} ({k})"
            assert v['errors'] <= max_errors, f"{example.name} ({k}):Number of DRC errors: {str(v['errors'])}"
    if cleanup:
        shutil.rmtree(run_dir)
        shutil.rmtree(example)
    else:
        return (example, run_dir)