code: def _get_episode(episode_len=None, id_=None):
      eps = SingleAgentEpisode(id_=id_, observations=[0.0], infos=[{}])
      ts = (
          np.random.randint(1, 200)
          if episode_len is None
          else episode_len
      )
      for t in range(ts):
          eps.add_env_step(
              observation=float(t + 1),
              action=int(t),
              reward=0.1 * (t + 1),
              infos={},
          )
      eps.is_terminated = np.random.random() > 0.5
      eps.is_truncated = (
          False if eps.is_terminated else np.random.random() > 0.8
      )
      return eps
  
file_path: ray/rllib/utils/replay_buffers/tests/test_episode_replay_buffer.py
imports: import unittest
  import numpy
  from ray.rllib.env.single_agent_episode import SingleAgentEpisode
  from ray.rllib.utils.replay_buffers.episode_replay_buffer import EpisodeReplayBuffer
label_desc: Use image node_id 1 for calling the TestEpisodeReplayBuffer obj's underlying member method code with example usage: obj._get_episode(episode_len, id_) and returns: eps