code: def init_checkpoint_callback(logger):
      return ModelCheckpoint(dirpath=logger.save_dir)
  
file_path: pytorch-lightning/tests/tests_pytorch/helpers/utils.py
imports: import functools
  import os
  from lightning.pytorch.callbacks import ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.loggers import TensorBoardLogger
  from tests_pytorch import _TEMP_PATH
label_desc: Use image node_id 5 for calling a global function with example usage: init_checkpoint_callback(logger) and returns: ModelCheckpoint