def flattenToTestCases(suite):
    if isinstance(suite, list) or isinstance(suite, unittest.TestSuite):
        return sum([flattenToTestCases(x) for x in suite], [])
    return [suite]
dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py/flattenToTestCases/original