code: def __init__(
      self,
      metrics: Optional[Union[str, List[str], Dict[str, str]]] = None,
      on: Union[str, List[str]] = "validation_end",
  ):
      if log_once("tune_ptl_report_deprecated"):
          warnings.warn(
              "`ray.tune.integration.pytorch_lightning.TuneReportCallback` "
              "is deprecated. Use "
              "`ray.tune.integration.pytorch_lightning.TuneReportCheckpointCallback`"
              " instead."
          )
      super(TuneReportCallback, self).__init__(
          metrics=metrics, save_checkpoints=False, on=on
      )
  
imports: import inspect
  import logging
  import os
  import tempfile
  import warnings
  from contextlib import contextmanager
  from typing import Dict, List, Optional, Type, Union
  from pytorch_lightning import Callback, Trainer, LightningModule
  from ray import train
  from ray.util import log_once
  from ray.util.annotations import PublicAPI, Deprecated
  from ray.train import Checkpoint
label_desc: Use image node_id 1 to create a new TuneReportCallback object from inherited base classes: TuneReportCheckpointCallback with example: obj = TuneReportCallback(metrics, on)