Nonlocal: Conceptual

environment diagram

Write out an environment diagram for the following function.
def outer(n):
    total = 0
    def inner(m):
        nonlocal total
        while m < n:
            total += m
            m = m * 2
    inner(1)
    return total
outer(6)