code: def test_record_episode_statistics(env_id, deque_size):
      env = gym.make(env_id, disable_env_checker=True)
      env = RecordEpisodeStatistics(env, deque_size)
  
      for n in range(5):
          env.reset()
          assert (
              env.episode_returns is not None
              and env.episode_lengths is not None
          )
          assert env.episode_returns[0] == 0.0
          assert env.episode_lengths[0] == 0
          for t in range(env.spec.max_episode_steps):
              _, _, terminated, truncated, info = env.step(
                  env.action_space.sample()
              )
              if terminated or truncated:
                  assert "episode" in info
                  assert all(
                      [
                          item in info["episode"]
                          for item in ["r", "l", "t"]
                      ]
                  )
                  break
      assert len(env.return_queue) == deque_size
      assert len(env.length_queue) == deque_size
  
file_path: gym/tests/wrappers/test_record_episode_statistics.py
imports: import numpy
  import pytest
  import gym
  from gym.wrappers import RecordEpisodeStatistics, VectorListInfo
  from gym.wrappers.record_episode_statistics import add_vector_episode_statistics
label_desc: Use image node_id 1 for calling a global function with example usage: test_record_episode_statistics(env_id, deque_size) without return types