class_docstr: Coin Game environment.
docstr: Output the following information:
  pick_speed is the fraction of steps during which the player picked a
  coin.
  pick_own_color is the fraction of coins picked by the player which have
  the same color as the player.
docstr_tok: ["Output","the","following","information",":","pick_speed","is","the","fraction","of","steps","during","which","the","player","picked","a","coin",".","pick_own_color","is","the","fraction","of","coins","picked","by","the","player","which","have","the","same","color","as","the","player","."]
code: def _get_episode_info(self):
      """
      Output the following information:
      pick_speed is the fraction of steps during which the player picked a
      coin.
      pick_own_color is the fraction of coins picked by the player which have
      the same color as the player.
      """
      player_red_info, player_blue_info = {}, {}
  
      if len(self.red_pick) > 0:
          red_pick = sum(self.red_pick)
          player_red_info["pick_speed"] = red_pick / len(self.red_pick)
          if red_pick > 0:
              player_red_info["pick_own_color"] = (
                  sum(self.red_pick_own) / red_pick
              )
  
      if len(self.blue_pick) > 0:
          blue_pick = sum(self.blue_pick)
          player_blue_info["pick_speed"] = blue_pick / len(
              self.blue_pick
          )
          if blue_pick > 0:
              player_blue_info["pick_own_color"] = (
                  sum(self.blue_pick_own) / blue_pick
              )
  
      return player_red_info, player_blue_info
  
imports: import copy
  import gymnasium
  import logging
  import numpy
  from gymnasium.spaces import Discrete
  from gymnasium.utils import seeding
  from ray.rllib.env.multi_agent_env import MultiAgentEnv
  from ray.rllib.utils import override
  from typing import Dict, Optional
  from ray.rllib.examples.env.utils.interfaces import InfoAccumulationInterface
label_desc: Use image node_id 18 for calling the CoinGame obj's underlying member method code with example usage: obj._get_episode_info() and returns: player_red_info,  player_blue_info