code: def add_memory_handlers_to_pl_logger():
      """
      Adds two MemoryHandlers to pytorch_lightning's logger. These two handlers are essentially message buffers. This
      function is called in nemo.utils.__init__.py. These handlers are used in add_filehandlers_to_pl_logger to flush
      buffered messages to files.
      """
      if not HANDLERS:
          HANDLERS["memory_err"] = MemoryHandler(-1)
          HANDLERS["memory_err"].addFilter(
              lambda record: record.levelno > _logging.INFO
          )
          HANDLERS["memory_all"] = MemoryHandler(-1)
          pl._logger.addHandler(HANDLERS["memory_err"])
          pl._logger.addHandler(HANDLERS["memory_all"])
  
imports: import logging
  from logging.handlers import MemoryHandler
  import pytorch_lightning
label_desc: Use image node_id 1 for calling a global function with example usage: add_memory_handlers_to_pl_logger() without return types