code: def test_invalid_param_combinations(
      self, input_size, size, resize_to, device, dtype
  ):
      with pytest.raises(Exception):
          param_gen = CropGenerator3D(
              size=size.to(device=device, dtype=dtype)
              if isinstance(size, torch.Tensor)
              else size,
              resize_to=resize_to,
          )
          param_gen(batch_shape=torch.Size((2, 1, *input_size)))
  
imports: import pytest
  import torch
  from kornia.augmentation.random_generator import AffineGenerator3D, CropGenerator3D, MotionBlurGenerator3D, PerspectiveGenerator3D, RotationGenerator3D, center_crop_generator3d
  from kornia.testing import assert_close
label_desc: Use image node_id 2 for calling the TestRandomCropGen3D obj's underlying member method code with example usage: obj.test_invalid_param_combinations(input_size, size, resize_to, device, dtype) without return types