code: def test_nested_closure():
      @interactive
      def foo():
          i = "i"
  
          def g():
              return i
  
          return g()
  
      pfoo = dumps(foo)
      bar = loads(pfoo)
      assert foo() == bar()
  
file_path: ipyparallel/ipyparallel/tests/test_canning.py
imports: import os
  import pickle
  from binascii import b2a_hex
  from functools import partial
  from ipyparallel.serialize import canning
  from ipyparallel.serialize.canning import can, uncan
label_desc: Use image node_id 7 for calling a global function with example usage: test_nested_closure() and returns: g, i