class_docstr: Defines a common interface of replay buffer.
  
  You can append transitions to the replay buffer and later sample from it.
  Replay buffers are typically used in experience replay.
class_docstr_tok: ["Defines","a","common","interface","of","replay","buffer",".","You","can","append","transitions","to","the","replay","buffer","and","later","sample","from","it",".","Replay","buffers","are","typically","used","in","experience","replay","."]
docstr: Notify the buffer that the current episode is interrupted.
  
  You may want to interrupt the current episode and start a new one
  before observing a terminal state. This is typical in continuing envs.
  In such cases, you need to call this method before appending a new
  transition so that the buffer will treat it as an initial transition of
  a new episode.
  
  This method should not be called after an episode whose termination is
  already notified by appending a transition with is_state_terminal=True.
  
  Args:
      env_id (object): Object that is unique to each env. It indicates
          which env's current episode is interrupted in multi-env
          training.
docstr_tok: ["Notify","the","buffer","that","the","current","episode","is","interrupted",".","You","may","want","to","interrupt","the","current","episode","and","start","a","new","one","before","observing","a","terminal","state",".","This","is","typical","in","continuing","envs",".","In","such","cases",",","you","need","to","call","this","method","before","appending","a","new","transition","so","that","the","buffer","will","treat","it","as","an","initial","transition","of","a","new","episode",".","This","method","should","not","be","called","after","an","episode","whose","termination","is","already","notified","by","appending","a","transition","with","is_state_terminal=True",".","Args",":","env_id","(","object",")",":","Object","that","is","unique","to","each","env",".","It","indicates","which","env","'s","current","episode","is","interrupted","in","multi-env","training","."]
code: def stop_current_episode(self, env_id=0):
      """Notify the buffer that the current episode is interrupted.
  
      You may want to interrupt the current episode and start a new one
      before observing a terminal state. This is typical in continuing envs.
      In such cases, you need to call this method before appending a new
      transition so that the buffer will treat it as an initial transition of
      a new episode.
  
      This method should not be called after an episode whose termination is
      already notified by appending a transition with is_state_terminal=True.
  
      Args:
          env_id (object): Object that is unique to each env. It indicates
              which env's current episode is interrupted in multi-env
              training.
      """
      raise NotImplementedError
  
imports: from abc import ABCMeta, abstractmethod, abstractproperty
  from typing import Optional
  import numpy
  import torch
  from pfrl.utils.batch_states import batch_states
  from pfrl.utils.recurrent import concatenate_recurrent_states, flatten_sequences_time_first, recurrent_state_from_numpy
label_desc: Use image node_id 7 for calling the AbstractReplayBuffer obj's underlying member method code with example usage: obj.stop_current_episode(env_id) without return types