code: def test_global_var_dict(self):
      glob = {"a": 1}
  
      def f():
          return glob["a"] + 1
  
      func_map = free_vars_detect._detect_function_free_vars(f)
      self.assertIn("f", func_map.keys())
      free_vars = get_var_name(func_map["f"])
      self.assertSequenceEqual(free_vars, ["glob"])
  
imports: import functools
  import unittest
  from absl.testing import parameterized
  import numpy
  from tensorflow.core.function.capture import free_vars_detect
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 5 for calling the FreeVarDetectionTest obj's underlying member method code with example usage: obj.test_global_var_dict() and returns: unknown