code: def load(self, filename):
      with open(filename, "rb") as f:
          memory = pickle.load(f)
      if isinstance(memory, tuple):
          self.memory, self.episodic_memory = memory
      else:
          # Load v0.2
          # FIXME: The code works with EpisodicReplayBuffer
          # but not with PrioritizedEpisodicReplayBuffer
          self.memory = RandomAccessQueue(memory)
          self.episodic_memory = RandomAccessQueue()
  
          # Recover episodic_memory with best effort.
          episode = []
          for item in self.memory:
              episode.append(item)
              if item["is_state_terminal"]:
                  self.episodic_memory.append(episode)
                  episode = []
  
file_path: pfrl/pfrl/replay_buffers/episodic.py
imports: import collections
  import pickle
  from typing import Optional
  from pfrl.collections.random_access_queue import RandomAccessQueue
  from pfrl.replay_buffer import AbstractEpisodicReplayBuffer, random_subseq
label_desc: Use image node_id 8 for calling the EpisodicReplayBuffer obj's underlying member method code with example usage: obj.load(filename) without return types