code: def setup_test(buttons, variables, visible=True):
      game = vzd.DoomGame()
      game.set_doom_scenario_path(
          os.path.join(vzd.scenarios_path, "basic.cfg")
      )
      game.set_doom_map("map01")
      game.set_episode_start_time(10)
  
      game.set_window_visible(visible)
      if visible:
          game.set_screen_resolution(vzd.ScreenResolution.RES_640X480)
  
      # Test if everything is alright with variables
      game.set_available_game_variables(variables)
      assert len(variables) == game.get_available_game_variables_size()
      assert variables == game.get_available_game_variables()
  
      # Test if everything is alright with buttons
      game.set_available_buttons(buttons)
      assert len(buttons) == game.get_available_buttons_size()
      assert buttons == game.get_available_buttons()
  
      game.set_mode(vzd.Mode.PLAYER)
  
      return game
  
file_path: ViZDoom/tests/manual_test_recording.py
imports: import os
  from random import random
  from time import sleep
  import vizdoom
label_desc: Use image node_id 1 for calling a global function with example usage: setup_test(buttons, variables, visible) and returns: game