code: def for_with_lambda_object():
      class SomeRandomObject:
          def bar(self, n):
              return n + 1
  
      def foo_init():
          return tf.constant(0)
  
      fns = []
      results = []
      foo = foo_init()
      for i in tf.range(3):
          foo = SomeRandomObject()
          fns.append(lambda i=i: foo.bar(i))
      for f in fns:
          results.append(f())
      return results
  
imports: import itertools
  from absl.testing import parameterized
  import tensorflow
  from tensorflow.python.autograph.tests import reference_test_base
label_desc: Use image node_id 4 for calling a global function with example usage: for_with_lambda_object() and returns: results, tf, unknown