class_docstr: A recurrent actor.
class_docstr_tok: ["A","recurrent","actor","."]
code: def observe(
      self,
      action: types.NestedArray,
      next_timestep: dm_env.TimeStep,
  ):
      if not self._adder:
          return
  
      extras = {
          "logits": self._prev_logits,
          "core_state": self._prev_state,
      }
      extras = tf2_utils.to_numpy_squeeze(extras)
      self._adder.add(action, next_timestep, extras)
  
file_path: acme/acme/agents/tf/impala/acting.py
imports: from typing import Optional
  from acme import adders
  from acme import core
  from acme import types
  from acme.tf import utils
  from acme.tf import variable_utils
  import dm_env
  import sonnet
  import tensorflow
  import tensorflow_probability
label_desc: Use image node_id 4 for calling the IMPALAActor obj's underlying member method code with example usage: obj.observe(action, next_timestep) without return types