class_docstr: Python memory leak detection class.
class_docstr_tok: ["Python","memory","leak","detection","class","."]
code: def record_snapshot(self):
      # Function called using `mark_stack_trace_and_call` will have
      # "_python_memory_checker_helper" string in the C++ stack trace.  This will
      # be used to filter out C++ memory allocations caused by this function,
      # because we are not interested in detecting memory growth caused by memory
      # checker itself.
      _python_memory_checker_helper.mark_stack_trace_and_call(
          self._record_snapshot
      )
  
file_path: tensorflow-upstream/tensorflow/python/framework/python_memory_checker.py
imports: import collections
  import copy
  import gc
  from tensorflow.python.framework import _python_memory_checker_helper
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.profiler import trace
label_desc: Use image node_id 2 for calling the _PythonMemoryChecker obj's underlying member method code with example usage: obj.record_snapshot() without return types