code: def testMemoryLeakInFunction(self):
      if not memory_test_util.memory_profiler_is_available():
          self.skipTest("memory_profiler required to run this test")
  
      def f():
          @def_function.function
          def graph(x):
              return x * x + x
  
          graph(constant_op.constant(42))
  
      memory_test_util.assert_no_leak(
          f, num_iters=1000, increase_threshold_absolute_mb=30
      )
  
file_path: tensorflow/tensorflow/python/eager/memory_tests/memory_test.py
imports: from tensorflow.python.eager import backprop
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.eager.memory_tests import memory_test_util
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradients
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.variables import Variable
label_desc: Use image node_id 2 for calling the MemoryTest obj's underlying member method code with example usage: obj.testMemoryLeakInFunction() and returns: unknown