code: def test_text_envs():
      env = gym.make(
          "FrozenLake-v1",
          render_mode="rgb_array_list",
          disable_env_checker=True,
      )
      video = VideoRecorder(env)
      try:
          env.reset()
          video.capture_frame()
          video.close()
      finally:
          os.remove(video.path)
  
imports: import gc
  import os
  import re
  import time
  import pytest
  import gym
  from gym.wrappers.monitoring.video_recorder import VideoRecorder
label_desc: Use image node_id 6 for calling a global function with example usage: test_text_envs() without return types