def _joint_policy(policies):
    """Turns a table of callables (indexed by player) into a single callable.
  Args:
    policies: A dictionary mapping player number to a function `state` -> list
      of (action, prob).
  Returns:
    A function `state` -> list of (action, prob)
  """

    def wrap(state):
        player = state.current_player()
        return policies[player](state)

    return wrap