code: def testReferToEnclosingScope(self):
      an_object = "four"
  
      def an_op_on_objects(obj):
          return len(obj)
  
      def id_type(args):
          return args[0]
  
      def an_autobatch_function(x):
          # Expect the object to be pulled in from the enclosing scope, not
          # converted to an auto-batch variable.
          return x + an_op_on_objects(an_object)
  
      batched = frontend.Context().batch_uncurried(
          an_autobatch_function, id_type
      )
      inputs = self._build_tensor(
          np.array([12, -13, 14], dtype=np.int32)
      )
      answer = batched(inputs, max_stack_depth=15, backend=TF_BACKEND)
      self._check_batch_size(answer, 3)
      self.assertAllEqual([16, -9, 18], self.evaluate(answer))
  
imports: import collections
  from absl import logging
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.auto_batching import frontend
  from tensorflow_probability.python.experimental.auto_batching import instructions
  from tensorflow_probability.python.experimental.auto_batching import numpy_backend
  from tensorflow_probability.python.experimental.auto_batching import tf_backend
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 6 for calling the _TestHidingTFBatchSize obj's underlying member method code with example usage: obj.testReferToEnclosingScope() and returns: len, args, unknown