code: def test_model_summary_callback_with_enable_model_summary_false():
      trainer = Trainer(enable_model_summary=False)
      assert not any(
          isinstance(cb, ModelSummary) for cb in trainer.callbacks
      )
  
file_path: pytorch-lightning/tests/tests_pytorch/callbacks/test_model_summary.py
imports: from typing import List, Union
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import ModelSummary
  from lightning.pytorch.demos.boring_classes import BoringModel
label_desc: Use image node_id 2 for calling a global function with example usage: test_model_summary_callback_with_enable_model_summary_false() without return types