code: def get_input(self, device, dtype, size, max_elem=10):
      shape = random_shape(size, max_elem)
      src1 = torch.randn(shape, device=device, dtype=dtype)
      src2 = torch.randn(shape, device=device, dtype=dtype)
      alpha = random.random()
      beta = random.random()
      gamma = random.random()
      return src1, src2, alpha, beta, gamma
  
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 1 for calling the TestAddWeighted obj's underlying member method code with example usage: obj.get_input(device, dtype, size, max_elem) and returns: src1,  src2,  alpha,  beta,  gamma