code: def test_record_video_step_trigger():
      env = gym.make(
          "CartPole-v1",
          render_mode="rgb_array",
          disable_env_checker=True,
      )
      env._max_episode_steps = 20
      env = gym.wrappers.RecordVideo(
          env, "videos", step_trigger=lambda x: x % 100 == 0
      )
      env.reset()
      for _ in range(199):
          action = env.action_space.sample()
          _, _, terminated, truncated, _ = env.step(action)
          if terminated or truncated:
              env.reset()
      env.close()
      assert os.path.isdir("videos")
      mp4_files = [
          file for file in os.listdir("videos") if file.endswith(".mp4")
      ]
      assert len(mp4_files) == 2
      shutil.rmtree("videos")
  
file_path: gym/tests/wrappers/test_record_video.py
imports: import os
  import shutil
  import gym
  from gym.wrappers import capped_cubic_video_schedule
label_desc: Use image node_id 3 for calling a global function with example usage: test_record_video_step_trigger() without return types