def METHOD_NAME():
    """Unrelated nonlocals still let messages emit"""
    count = 0
    unrelated = 0
    def inner():
        nonlocal unrelated
        try:
            print(count)  # [used-before-assignment]
        except ValueError:
            count += 1
    print(count)
    return inner()