code: def test_transforms_and_image_size_cannot_be_none():
      """When transformations ``config`` and ``image_size`` are ``None``
      ``PreProcessor`` class should raise a ``ValueError``."""
  
      with pytest.raises(ValueError):
          get_transforms(config=None, image_size=None)
  
file_path: anomalib/tests/pre_merge/pre_processing/transforms/test_transforms.py
imports: import tempfile
  import albumentations
  import numpy
  import pytest
  import skimage
  from torch import Tensor
  from anomalib.data.utils import get_transforms
label_desc: Use image node_id 1 for calling a global function with example usage: test_transforms_and_image_size_cannot_be_none() without return types