code: def __init__(self):
      self._failed_ids = set()
  
imports: import glob
  import os
  import time
  import ray
  from xgboost_ray import train, RayDMatrix, RayFileType, RayDeviceQuantileDMatrix, RayParams
  from xgboost_ray.session import get_actor_rank, put_queue
  from xgboost.callback import TrainingCallback
  from xgboost.rabit import get_world_size
label_desc: Use image node_id 1 to create a new FailureState object  with example: obj = FailureState()