parameters: (self, state, player)
docstring: Updates `tensor` and `dict` to reflect `state` from PoV of `player`.
docstring_summary: Updates `tensor` and `dict` to reflect `state` from PoV of `player`.
docstring_tokens: Updates tensor and dict to reflect state from PoV of player .
function: def set_from(self, state, player):
      """Updates `tensor` and `dict` to reflect `state` from PoV of `player`."""
      self.tensor.fill(0)
      if "player" in self.dict:
        self.dict["player"][player] = 1
      if "private_card" in self.dict and len(state.cards) > player:
        self.dict["private_card"][state.cards[player]] = 1
      if "pot_contribution" in self.dict:
        self.dict["pot_contribution"][:] = state.pot
      if "betting" in self.dict:
        for turn, action in enumerate(state.bets):
          self.dict["betting"][turn, action] = 1
function_tokens: def set_from ( self , state , player ) : self . tensor . fill ( 0 ) if "player" in self . dict : self . dict [ "player" ] [ player ] = 1 if "private_card" in self . dict and len ( state . cards ) > player : self . dict [ "private_card" ] [ state . cards [ player ] ] = 1 if "pot_contribution" in self . dict : self . dict [ "pot_contribution" ] [ : ] = state . pot if "betting" in self . dict : for turn , action in enumerate ( state . bets ) : self . dict [ "betting" ] [ turn , action ] = 1