code: def test_record_simple():
      env = gym.make(
          "CartPole-v1",
          render_mode="rgb_array_list",
          disable_env_checker=True,
      )
      rec = VideoRecorder(env)
      env.reset()
      rec.capture_frame()
  
      rec.close()
  
      assert not rec.broken
      assert os.path.exists(rec.path)
      f = open(rec.path)
      assert os.fstat(f.fileno()).st_size > 100
  
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 1 for calling a global function with example usage: test_record_simple() without return types