def flatten_output(task):
    r = flatten(task.output())
    if not r:
        for dep in flatten(task.requires()):
            r += flatten_output(dep)
    return r
Test MeanAbsolutePercentageError.local_error.
dataset/ETHPy150Open spotify/luigi/luigi/task.py/flatten_output--crossover with--dataset/ETHPy150Open T-002/pycast/pycast/tests/meanabsolutepercentageerrortest.py/MeanAbsolutePercentageErrorTest.local_error_test