class_docstr: Base (abstract) class for models used for planning via MCTS.
class_docstr_tok: ["Base","(","abstract",")","class","for","models","used","for","planning","via","MCTS","."]
docstr: Updates the model given an observation, action, reward, and discount.
docstr_tok: ["Updates","the","model","given","an","observation",",","action",",","reward",",","and","discount","."]
code: def update(
      self,
      timestep: dm_env.TimeStep,
      action: types.Action,
      next_timestep: dm_env.TimeStep,
  ) -> dm_env.TimeStep:
      """Updates the model given an observation, action, reward, and discount."""
  
file_path: acme/acme/agents/tf/mcts/models/base.py
imports: import abc
  from typing import Optional
  from acme.agents.tf.mcts import types
  import dm_env
label_desc: Use image node_id 3 for calling the Model obj's underlying member method code with example usage: obj.update(timestep, action, next_timestep) without return types