code: def test_scale_factor_05(self, device, dtype):
      # prepare input data
      inp = torch.tensor(
          [
              [
                  [1.0, 1.0, 1.0, 1.0],
                  [1.0, 1.0, 1.0, 1.0],
                  [1.0, 1.0, 1.0, 1.0],
                  [1.0, 1.0, 1.0, 1.0],
              ]
          ],
          device=device,
          dtype=dtype,
      )
      expected = torch.tensor(
          [
              [
                  [0.0, 0.0, 0.0, 0.0],
                  [0.0, 1.0, 1.0, 0.0],
                  [0.0, 1.0, 1.0, 0.0],
                  [0.0, 0.0, 0.0, 0.0],
              ]
          ],
          device=device,
          dtype=dtype,
      )
      # prepare transformation
      scale_factor = torch.tensor(
          [[0.5, 0.5]], device=device, dtype=dtype
      )
      transform = kornia.geometry.transform.Scale(scale_factor)
      assert_close(transform(inp), expected, atol=1e-4, rtol=1e-4)
  
imports: import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.testing import assert_close
label_desc: Use image node_id 2 for calling the TestScale obj's underlying member method code with example usage: obj.test_scale_factor_05(device, dtype) without return types