code: def random_test():
      buttons = [
          B.MOVE_LEFT,
          B.MOVE_RIGHT,
          B.MOVE_BACKWARD,
          B.MOVE_FORWARD,
          B.TURN_RIGHT,
          B.TURN_LEFT,
          B.CROUCH,
          B.JUMP,
      ]
  
      variables = [
          GV.POSITION_X,
          GV.POSITION_Y,
          GV.POSITION_Z,
          GV.VIEW_HEIGHT,
          GV.ANGLE,
          GV.PITCH,
          GV.ROLL,
      ]
  
      test_actions1 = []
      for _ in range(1000):
          test_actions1.append(random_action(len(buttons), 0.5))
  
      test_actions2 = []
      for _ in range(1000):
          test_actions2.append(random_action(len(buttons), 0.9))
  
      test_actions3 = []
      for _ in range(1000):
          test_actions3.append(random_action(len(buttons), 0.1))
  
      test_mode_and_sleep(
          buttons, variables, test_actions1, title="Random test #1"
      )
      test_mode_and_sleep(
          buttons, variables, test_actions2, title="Random test #2"
      )
      test_mode_and_sleep(
          buttons, variables, test_actions3, title="Random test #3"
      )
  
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 7 for calling a global function with example usage: random_test() without return types