class_docstr: Adder which adds entire episodes as trajectories.
class_docstr_tok: ["Adder","which","adds","entire","episodes","as","trajectories","."]
code: def add(
      self,
      action: types.NestedArray,
      next_timestep: dm_env.TimeStep,
      extras: types.NestedArray = (),
  ):
      if self._writer.episode_steps >= self._max_sequence_length - 1:
          raise ValueError(
              "The number of observations within the same episode will exceed "
              "max_sequence_length with the addition of this transition."
          )
  
      super().add(action, next_timestep, extras)
  
file_path: acme/acme/adders/reverb/episode.py
imports: from typing import Callable, Optional, Iterable, Tuple
  from acme import specs
  from acme import types
  from acme.adders.reverb import base
  from acme.adders.reverb import utils
  import dm_env
  import numpy
  import reverb
  import tensorflow
  import tree
label_desc: Use image node_id 2 for calling the EpisodeAdder obj's underlying member method code with example usage: obj.add(action, next_timestep, extras) without return types