class_docstr: Keeps the statistics and event logs from the last episode so that it can then be shipped to the main process.
class_docstr_tok: ["Keeps","the","statistics","and","event","logs","from","the","last","episode","so","that","it","can","then","be","shipped","to","the","main","process","."]
docstr: Receive the statistics from the env and store them.
docstr_tok: ["Receive","the","statistics","from","the","env","and","store","them","."]
code: def receive(self, stat: LogStats) -> None:
      """Receive the statistics from the env and store them."""
      self.last_stats = stat
  
imports: import logging
  import traceback
  from collections import namedtuple
  from multiprocessing import Queue, Process
  from queue import Empty
  from typing import Iterable, Tuple
  from omegaconf import DictConfig
  from tqdm import tqdm
  from maze.core.annotations import override
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.structured_env import StructuredEnv
  from maze.core.log_events.episode_event_log import EpisodeEventLog
  from maze.core.log_events.log_events_writer import LogEventsWriter
  from maze.core.log_events.log_events_writer_registry import LogEventsWriterRegistry
  from maze.core.log_events.log_events_writer_tsv import LogEventsWriterTSV
  from maze.core.log_stats.log_stats import LogStatsAggregator, LogStatsLevel, get_stats_logger
  from maze.core.log_stats.log_stats import LogStatsConsumer, LogStats
  from maze.core.log_stats.log_stats import register_log_stats_writer
  from maze.core.log_stats.log_stats_writer_console import LogStatsWriterConsole
  from maze.core.rollout.rollout_runner import RolloutRunner
  from maze.core.trajectory_recording.writers.trajectory_writer_file import TrajectoryWriterFile
  from maze.core.trajectory_recording.writers.trajectory_writer_registry import TrajectoryWriterRegistry
  from maze.core.utils.factory import ConfigType, CollectionOfConfigType
  from maze.core.wrappers.log_stats_wrapper import LogStatsWrapper
  from maze.core.wrappers.trajectory_recording_wrapper import TrajectoryRecordingWrapper
  from maze.utils.bcolors import BColors
label_desc: Use image node_id 2 for calling the EpisodeRecorder obj's underlying member method code with example usage: obj.receive(stat) without return types