class_docstr: Run garbage collector after each epoch
  
  Args:
      trigger_event: the event that trigger a call to this handler.
          - "epoch", after completion of each epoch (equivalent of ignite.engine.Events.EPOCH_COMPLETED)
          - "iteration", after completion of each iteration (equivalent of ignite.engine.Events.ITERATION_COMPLETED)
          - any ignite built-in event from ignite.engine.Events.
          Defaults to "epoch".
      log_level: log level (integer) for some garbage collection information as below. Defaults to 10 (DEBUG).
          - 50 (CRITICAL)
          - 40 (ERROR)
          - 30 (WARNING)
          - 20 (INFO)
          - 10 (DEBUG)
          - 0 (NOTSET)
docstr: This method calls python garbage collector.
  
  Args:
      engine: Ignite Engine, it should be either a trainer or validator.
docstr_tok: ["This","method","calls","python","garbage","collector",".","Args",":","engine",":","Ignite","Engine",",","it","should","be","either","a","trainer","or","validator","."]
code: def __call__(self, engine: Engine) -> None:
      """
      This method calls python garbage collector.
  
      Args:
          engine: Ignite Engine, it should be either a trainer or validator.
      """
      # get count before garbage collection
      pre_count = gc.get_count()
      # first call to garbage collector
      gc.collect()
      # second call to garbage collector
      unreachable = gc.collect()
      # get count after garbage collection
      after_count = gc.get_count()
      engine.logger.log(
          self.log_level,
          f"Garbage Count: [before: {pre_count}] -> [after: {after_count}] (unreachable : {unreachable})",
      )
  
file_path: MONAI/monai/handlers/garbage_collector.py
imports: from __future__ import annotations
  import gc
  from typing import TYPE_CHECKING
  from monai.config import IgniteInfo
  from monai.utils import min_version, optional_import
label_desc: Use image node_id 3 for calling the GarbageCollector obj's underlying member method code with example usage: obj.__call__(engine) without return types