code: def create_boring_checkpoint(tmp_path, model, accelerator="cuda"):
      checkpoint_callback = ModelCheckpoint(
          dirpath=tmp_path, filename="checkpoint"
      )
      trainer = pl.Trainer(
          devices=1,
          accelerator=accelerator,
          max_epochs=1,
          enable_model_summary=False,
          enable_progress_bar=False,
          callbacks=[checkpoint_callback],
      )
      trainer.fit(model)
  
file_path: pytorch-lightning/tests/tests_pytorch/core/test_saving.py
imports: import lightning.pytorch
  import pytest
  import torch
  from lightning.pytorch.callbacks import ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringDataModule, BoringModel
  from tests_pytorch.conftest import mock_cuda_count, mock_mps_count
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: create_boring_checkpoint(tmp_path, model, accelerator) without return types