code: def assert_gif_export(env: MazeEnv) -> None:
      """Checks if gif got exported correctly."""
      env.reset()
      for _ in range(3):
          env.step(env.action_space.sample())
      env.close()
  
      # check if gif was exported
      gif_files = glob.glob("*.gif")
      assert len(gif_files) == 1
  
file_path: maze/maze/test/core/wrappers/test_export_gif_wrapper.py
imports: import glob
  from maze.core.env.maze_env import MazeEnv
  from maze.core.wrappers.export_gif_wrapper import ExportGifWrapper
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.test.shared_test_utils.helper_functions import build_dummy_maze_env
label_desc: Use image node_id 1 for calling a global function with example usage: assert_gif_export(env) without return types