code: def test_upsize(self, device, dtype):
      inp = torch.rand(1, 3, 3, 4, device=device, dtype=dtype)
      out = kornia.geometry.transform.resize(
          inp, (6, 8), align_corners=False
      )
      assert out.shape == (1, 3, 6, 8)
  
      # 2D
      inp = torch.rand(3, 4, device=device, dtype=dtype)
      out = kornia.geometry.transform.resize(
          inp, (6, 8), align_corners=False
      )
      assert out.shape == (6, 8)
  
      # 3D
      inp = torch.rand(3, 3, 4, device=device, dtype=dtype)
      out = kornia.geometry.transform.resize(
          inp, (6, 8), align_corners=False
      )
      assert out.shape == (3, 6, 8)
  
      # arbitrary dim
      inp = torch.rand(
          1, 2, 3, 2, 1, 3, 3, 4, device=device, dtype=dtype
      )
      out = kornia.geometry.transform.resize(
          inp, (6, 8), align_corners=False
      )
      assert out.shape == (1, 2, 3, 2, 1, 3, 6, 8)
  
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 TestResize obj's underlying member method code with example usage: obj.test_upsize(device, dtype) without return types