code: def pytest_runtest_teardown(item):
      log_entry = ConsumedRamLogEntry(
          item.nodeid, END, get_consumed_ram()
      )
      consumed_ram_log.append(log_entry)
  
imports: import os
  from collections import namedtuple
  from itertools import groupby
  from psutil import Process
label_desc: Use image node_id 3 for calling a global function with example usage: pytest_runtest_teardown(item) without return types