code: def test_add_vector_episode_statistics():
      NUM_ENVS = 5
  
      info = {}
      for i in range(NUM_ENVS):
          episode_info = {
              "episode": {
                  "r": i,
                  "l": i,
                  "t": i,
              }
          }
          info = add_vector_episode_statistics(
              info, episode_info["episode"], NUM_ENVS, i
          )
          assert np.alltrue(info["_episode"][: i + 1])
  
          for j in range(NUM_ENVS):
              if j <= i:
                  assert info["episode"]["r"][j] == j
                  assert info["episode"]["l"][j] == j
                  assert info["episode"]["t"][j] == j
              else:
                  assert info["episode"]["r"][j] == 0
                  assert info["episode"]["l"][j] == 0
                  assert info["episode"]["t"][j] == 0
  
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 5 for calling a global function with example usage: test_add_vector_episode_statistics() without return types