code: def peak() -> int:
      """
      Take a snapshot of the current "peak memory usage", similar to an allocation version of time.perf_counter() (etc.).
      """
      _, peak = tracemalloc.get_traced_memory()
      # reset the peak for the next recording
      tracemalloc.clear_traces()
      return MallocPeak(peak)
  
file_path: stellargraph/tests/test_utils/alloc.py
imports: import gc
  import pytest
  import tracemalloc
label_desc: Use image node_id 2 for calling a global function with example usage: peak() and returns: MallocPeak