class_docstr: Adds random failure injection to the TrialExecutor.
code: def __init__(
      self,
      config_path="~/ray_bootstrap_config.yaml",
      probability=0.1,
      time_between_checks=0,
      disable=False,
  ):
      self.probability = probability
      self.config_path = Path(config_path).expanduser().as_posix()
      self.disable = disable
  
      self.time_between_checks = time_between_checks
      # Initialize with current time so we don't fail right away
      self.last_fail_check = time.monotonic()
  
imports: from collections import defaultdict
  import logging
  import os
  import random
  import time
  from pathlib import Path
  from typing import Dict
  from ray.tune.callback import Callback
  from ray.tune.experiment import Trial
label_desc: Use image node_id 1 to create a new FailureInjectorCallback object from inherited base classes: Callback with example: obj = FailureInjectorCallback(config_path, probability, time_between_checks, disable)