code: def test_disabled_checkpointing(tmpdir):
      # no callback
      trainer = Trainer(max_epochs=3, enable_checkpointing=False)
      assert not trainer.checkpoint_callbacks
      trainer.fit(BoringModel())
      assert not trainer.checkpoint_callbacks
  
file_path: pytorch-lightning/tests/tests_pytorch/checkpointing/test_checkpoint_callback_frequency.py
imports: import os
  from unittest import mock
  import pytest
  import torch
  from lightning.pytorch import Trainer, callbacks
  from lightning.pytorch.demos.boring_classes import BoringModel
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_disabled_checkpointing(tmpdir) without return types