class_docstr: Batching memory which always retrieves most recent experiences (specification key: `recent`).
  
  Args:
      capacity (int > 0): Memory capacity
          (<span style="color:#00C000"><b>default</b></span>: minimum capacity).
      device (string): Device name
          (<span style="color:#00C000"><b>default</b></span>: CPU:0).
      name (string): <span style="color:#0000C0"><b>internal use</b></span>.
      values_spec (specification): <span style="color:#0000C0"><b>internal use</b></span>.
      min_capacity (int >= 0): <span style="color:#0000C0"><b>internal use</b></span>.
code: def retrieve_episodes(self, *, n):
      zero = tf_util.constant(value=0, dtype="int")
      one = tf_util.constant(value=1, dtype="int")
      capacity = tf_util.constant(value=self.capacity, dtype="int")
  
      # Check whether memory contains at least one episode
      assertions = list()
      if self.config.create_tf_assertions:
          assertions.append(
              tf.debugging.assert_greater_equal(
                  x=self.episode_count, y=one
              )
          )
  
      # Get start and limit index for most recent n episodes
      with tf.control_dependencies(control_inputs=assertions):
          n = tf.math.minimum(x=n, y=self.episode_count)
  
          # (Increment terminal of previous episode)
          start = self.terminal_indices[self.episode_count - n] + one
          limit = self.terminal_indices[self.episode_count] + one
  
          # Correct limit index if smaller than start index
          limit = limit + tf.where(
              condition=(limit < start), x=capacity, y=zero
          )
  
          # Most recent episode indices range
          indices = tf.range(start=start, limit=limit)
          indices = tf.math.mod(x=indices, y=capacity)
  
      return indices
  
imports: import tensorflow
  from tensorforce.core import tf_function, tf_util
  from tensorforce.core.memories import Queue
label_desc: Use image node_id 2 for calling the Recent obj's underlying member method code with example usage: obj.retrieve_episodes() and returns: indices