code: def __init__(
      self,
      metrics: Optional[Union[str, List[str], Dict[str, str]]] = None,
      results_postprocessing_fn: Optional[
          Callable[
              [Dict[str, Union[float, List[float]]]], Dict[str, float]
          ]
      ] = None,
  ):
      if log_once("tune_xgboost_report_deprecated"):
          warnings.warn(
              "`ray.tune.integration.xgboost.TuneReportCallback` is deprecated. "
              "Use `ray.tune.integration.xgboost.TuneCheckpointReportCallback` "
              "instead."
          )
      super().__init__(
          metrics=metrics,
          results_postprocessing_fn=results_postprocessing_fn,
          frequency=0,
      )
  
imports: from collections import OrderedDict
  from contextlib import contextmanager
  from typing import Callable, Dict, List, Union, Optional
  import os
  import tempfile
  import warnings
  from ray import train, tune
  from ray.train import Checkpoint
  from ray.tune.utils import flatten_dict
  from ray.util import log_once
  from ray.util.annotations import Deprecated
  from xgboost.core import Booster
label_desc: Use image node_id 1 to create a new TuneReportCallback object from inherited base classes: TuneReportCheckpointCallback with example: obj = TuneReportCallback(metrics, results_postprocessing_fn)