code: def test_shape_mismatch(self, device, dtype, size1, size2):
      src1 = torch.randn(size1, device=device, dtype=dtype)
      src2 = torch.randn(size2, device=device, dtype=dtype)
      with pytest.raises(Exception):
          TestAddWeighted.fcn(src1, 1.0, src2, 1.0, 0.0)
  
file_path: kornia/test/enhance/test_core.py
imports: import random
  import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.core import Tensor
  from kornia.testing import assert_close
label_desc: Use image node_id 3 for calling the TestAddWeighted obj's underlying member method code with example usage: obj.test_shape_mismatch(device, dtype, size1, size2) without return types