code: def test_tile_size_cannot_be_larger_than_image_size():
      """Larger tile size than image size is not desired, and causes issues."""
      with pytest.raises(ValueError):
          tiler = Tiler(tile_size=1024, stride=512)
          image = torch.rand(1, 3, 512, 512)
          tiler.tile(image)
  
file_path: anomalib/tests/pre_merge/datasets/test_tiler.py
imports: import pytest
  import torch
  from omegaconf import ListConfig
  from anomalib.pre_processing.tiler import StrideSizeError, Tiler
label_desc: Use image node_id 4 for calling a global function with example usage: test_tile_size_cannot_be_larger_than_image_size() without return types