code: def _solve_chance_nodes(self):
      # Chance node(s): Sample a (non-player) action and apply.
      while self.state.is_chance_node():
          assert self.state.current_player() == -1
          actions, probs = zip(*self.state.chance_outcomes())
          action = np.random.choice(actions, p=probs)
          self.state.apply_action(action)
  
file_path: ray/python/ray/rllib/env/wrappers/open_spiel.py
imports: from typing import Optional
  import numpy
  from gymnasium.spaces import Box, Discrete
  from ray.rllib.env.multi_agent_env import MultiAgentEnv
  from ray.rllib.env.utils import try_import_pyspiel
label_desc: Use image node_id 6 for calling the OpenSpielEnv obj's underlying member method code with example usage: obj._solve_chance_nodes() without return types