code: def _snapshot_diff(old_snapshot, new_snapshot, exclude_ids):
      result = collections.Counter()
      for new_name, new_ids in new_snapshot.items():
          old_ids = old_snapshot[new_name]
          result[new_name] = len(new_ids - exclude_ids) - len(
              old_ids - exclude_ids
          )
  
      # This removes zero or negative value entries.
      result += collections.Counter()
      return result
  
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 3 for calling a global function with example usage: _snapshot_diff(old_snapshot, new_snapshot, exclude_ids) and returns: result