code: def test_limit_batches_info_message(caplog, argument, value):
      with caplog.at_level(logging.INFO):
          Trainer(**{argument: value})
      assert (
          f"`Trainer({argument}={value})` was configured" in caplog.text
      )
      message = (
          f"configured so {'1' if isinstance(value, int) else '100%'}"
      )
      assert message in caplog.text
  
      caplog.clear()
  
      # the message should not appear by default
      with caplog.at_level(logging.INFO):
          Trainer()
      assert message not in caplog.text
  
file_path: pytorch-lightning/tests/tests_pytorch/trainer/flags/test_limit_batches.py
imports: import logging
  import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.trainer.states import TrainerFn
label_desc: Use image node_id 3 for calling a global function with example usage: test_limit_batches_info_message(caplog, argument, value) without return types