class_docstr: Event aggregation object dealing with cutting rewards.
      
class_docstr_tok: ["Event","aggregation","object","dealing","with","cutting","rewards","."]
docstr: Summarize reward based on the orders and pieces to cut.
  
  :return: the summarized scalar reward.
docstr_tok: ["Summarize","reward","based","on","the","orders","and","pieces","to","cut",".",":","return",":","the","summarized","scalar","reward","."]
code: def summarize_reward(
      self, maze_state: Optional[MazeStateType] = None
  ) -> float:
      """Summarize reward based on the orders and pieces to cut.
  
      :return: the summarized scalar reward.
      """
      return sum(
          e.value
          for e in self.query_events(DummyEnvEvents.twice_per_step)
      )
  
file_path: maze/maze/test/shared_test_utils/dummy_env/reward/base.py
imports: from abc import ABC
  from typing import List, Type, Optional
  from maze.core.env.maze_state import MazeStateType
  from maze.core.env.reward import RewardAggregatorInterface
label_desc: Use image node_id 2 for calling the RewardAggregator obj's underlying member method code with example usage: obj.summarize_reward(maze_state) and returns: sum