docs: def install_timers(config, context):
      """Create the timers as specified by the plugin configuration."""
      timers = []
      if config.get('capture_timeout_warnings'):
          timeout_threshold = config.get('timeout_warning_threshold')
          # Schedule the warning at the user specified threshold given in percent.
          # ie: 0.50 of 30000 ms = 15000ms
          # Schedule the error a few milliseconds before the actual timeout happens.
          time_remaining = context.get_remaining_time_in_millis() / 1000
          timers.append(Timer(time_remaining * timeout_threshold, timeout_warning, (config, context)))
          timers.append(Timer(max(time_remaining - .5, 0), timeout_error, [config]))
  
      if config.get('capture_memory_warnings'):
          # Schedule the memory watch dog interval. Warning will re-schedule itself if necessary.
          timers.append(Timer(.5, memory_warning, (config, context)))
  
      for t in timers:
          t.start()
  
      return timers