code: def test_mode_and_sleep(buttons, variables, actions, title):
      sleep_times = [0, 0.001, 0.1]
      for sleep_time in sleep_times:
          recording_test(
              buttons,
              variables,
              actions,
              mode=vzd.Mode.PLAYER,
              title=title
              + " PLAYER mode with sleep = "
              + str(sleep_time),
          )
  
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 4 for calling a global function with example usage: test_mode_and_sleep(buttons, variables, actions, title) without return types