code: def close_pygame():
      yield
      pygame.quit()
  
imports: from functools import partial
  from itertools import product
  from typing import Callable
  import numpy
  import pygame
  import pytest
  from pygame import KEYDOWN, KEYUP, QUIT, event
  from pygame.event import Event
  import gym
  from gym.utils.play import MissingKeysToAction, PlayableGame, play
  from tests.testing_env import GenericTestEnv
label_desc: Use image node_id 3 for calling a global function with example usage: close_pygame() without return types