code: def testReportCallbackNamed(self):
      def train_fn(config):
          module = _MockModule(10.0, 20.0)
          trainer = pl.Trainer(
              max_epochs=1,
              callbacks=[
                  TuneReportCheckpointCallback(
                      metrics={"tune_loss": "avg_val_loss"},
                      on="validation_end",
                      save_checkpoints=False,
                  )
              ],
          )
          trainer.fit(module)
  
      analysis = tune.run(train_fn, stop={TRAINING_ITERATION: 1})
  
      self.assertEqual(
          analysis.trials[0].last_result["tune_loss"], 10.0 * 1.1
      )
  
imports: import shutil
  import tempfile
  import unittest
  import pytorch_lightning
  from ray.train import CheckpointConfig
  import torch
  from ray.air.constants import TRAINING_ITERATION
  from torch.utils.data import DataLoader, Dataset
  from ray import train, tune
  from ray.tune.integration.pytorch_lightning import TuneReportCheckpointCallback
label_desc: Use image node_id 4 for calling the PyTorchLightningIntegrationTest obj's underlying member method code with example usage: obj.testReportCallbackNamed() without return types