def outcome_summary_fn(
    unused_binary_joint_action: Mapping[str, int],
    unused_joint_action: Mapping[str, str],
    rewards: Mapping[str, float],
    unused_cumulative_rewards: Mapping[str, float],
) -> Mapping[str, str]:
  """Summarize the outcome of a decision scene."""
  marking = ''
  if np.sum(list(rewards.values())) < 0:
    marking = '[FAIL]'
  result = {
      name: f'{marking} {name} got a score of {score}'
      for name, score in rewards.items()
  }
  return result
Summarize the outcome of a decision scene.
examples/deprecated/modular/environment/forbidden_fruit.py