code: def test_validation_check_interval_exceed_data_length_wrong():
      trainer = Trainer(
          limit_train_batches=10,
          val_check_interval=100,
      )
  
      model = BoringModel()
      with pytest.raises(
          ValueError,
          match="must be less than or equal to the number of the training batches",
      ):
          trainer.fit(model)
  
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 4 for calling a global function with example usage: test_validation_check_interval_exceed_data_length_wrong() without return types