def test_1(): test = [[1, 2], 3, [4, [5, [6]], 7]] expect(list(flatten(test))).to_equal(list(deepflatten(test)))
def test_5(): test = [[1, 2], [[[[]]], 3], [[[4]], [5, [6]], 7]] expect(list(flatten(test))).to_equal(list(deepflatten(test)))