code: def test_local_function_closure_mutable_var(self):
      def test_fn(x: int):
          def foo():
              nonlocal x
              return x
  
          foo()
  
      node, _ = TestTranspiler(BasicTestResolver).transform(
          test_fn, None
      )
      fn_body = node.body
  
      self.assertTypes(fn_body[0].body[1].value, "int")
      self.assertClosureTypes(fn_body[0], {"x": {"int"}})
  
imports: import unittest
  from typing import Any, Callable, List
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import cfg
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import transpiler
  from nvidia.dali._autograph.pyct.static_analysis import activity
  from nvidia.dali._autograph.pyct.static_analysis import reaching_definitions
  from nvidia.dali._autograph.pyct.static_analysis import reaching_fndefs
  from nvidia.dali._autograph.pyct.static_analysis import type_inference
label_desc: Use image node_id 20 for calling the TypeInferenceAnalyzerTest obj's underlying member method code with example usage: obj.test_local_function_closure_mutable_var() and returns: x