code: def test_val_check_interval_info_message(caplog, value):
      with caplog.at_level(logging.INFO):
          Trainer(val_check_interval=value)
      assert (
          f"`Trainer(val_check_interval={value})` was configured"
          in caplog.text
      )
      message = "configured so validation will run"
      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_val_check_interval.py
imports: import logging
  import pytest
  from lightning.pytorch.demos.boring_classes import BoringModel, RandomDataset, RandomIterableDataset
  from lightning.pytorch.trainer.trainer import Trainer
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  from torch.utils.data import DataLoader
label_desc: Use image node_id 2 for calling a global function with example usage: test_val_check_interval_info_message(caplog, value) without return types