class_docstr: Interface to access logging statistics generated by the environment. Most envs won't implement this directly,
  but use the LogStatsWrapper to implement this functionality.
docstr: Get access to the statistics aggregator, which can be used to receive the latest statistics dictionary
  (via :meth:`~maze.core.log_stats.log_stats.LogStatsAggregator.last_stats`) or to register log consumers.
  
  :param level: The statistics aggregation level
                (LogStatsLevel.STEP, LogStatsLevel.EPISODE or LogStatsLevel.EPOCH)
  
  :return: The statistics aggregator
code: def get_stats(self, level: LogStatsLevel) -> LogStatsAggregator:
      """Get access to the statistics aggregator, which can be used to receive the latest statistics dictionary
      (via :meth:`~maze.core.log_stats.log_stats.LogStatsAggregator.last_stats`) or to register log consumers.
  
      :param level: The statistics aggregation level
                    (LogStatsLevel.STEP, LogStatsLevel.EPISODE or LogStatsLevel.EPOCH)
  
      :return: The statistics aggregator
      """
  
file_path: maze/maze/core/log_stats/log_stats_env.py
imports: from abc import abstractmethod, ABC
  from typing import Callable, Optional
  from maze.core.log_stats.log_stats import LogStatsLevel, LogStatsValue, LogStatsAggregator
label_desc: Use image node_id 1 for calling the LogStatsEnv obj's underlying member method code with example usage: obj.get_stats(level) without return types