def METHOD_NAME(self):
    def outer():
        x = 5
        y = 6
        def inner():
            z = x + 2
            1/0
            t = 9
        return inner()
    try:
        outer()
    except ZeroDivisionError as e:
        tb = e.__traceback__
        frames = []
        while tb:
            frames.append(tb.tb_frame)
            tb = tb.tb_next
    return frames