code: def random_action(action_len, button_press_prob):
      new_action = [0] * action_len
      for i in range(action_len):
          new_action[i] = 1.0 if random() < button_press_prob else 0.0
      return new_action
  
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 6 for calling a global function with example usage: random_action(action_len, button_press_prob) and returns: new_action