code: def _make_getter(captured_getter, captured_previous):
      """To avoid capturing loop variables."""
  
      def getter(*args, **kwargs):
          return captured_getter(captured_previous, *args, **kwargs)
  
      return getter
  
imports: import contextlib
  import copy
  import weakref
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.trackable import base
  from tensorflow.python.util import tf_contextlib
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling a global function with example usage: _make_getter(captured_getter, captured_previous) and returns: getter, captured_getter