code: def test_resize_int(self, size):
      # TODO: Minimal check for bug-fix, improve this later
      x = torch.rand(3, 32, 46)
      t = T.Resize(size=size, antialias=True)
      y = t(x)
      # If size is an int, smaller edge of the image will be matched to this number.
      # i.e, if height > width, then image will be rescaled to (size * height / width, size).
      assert isinstance(y, torch.Tensor)
      assert y.shape[1] == size
      assert y.shape[2] == int(size * 46 / 32)
  
imports: import os
  import sys
  import numpy
  import PIL.Image
  import pytest
  import torch
  from common_utils import _assert_approx_equal_tensor_to_pil, _assert_equal_tensor_to_pil, _create_data, _create_data_batch, assert_equal, cpu_and_cuda, float_dtypes, get_tmp_dir, int_dtypes
  from torchvision import transforms
  from torchvision.transforms import functional, InterpolationMode
  from torchvision.transforms.autoaugment import _apply_op
label_desc: Use image node_id 1 for calling the TestResize obj's underlying member method code with example usage: obj.test_resize_int(size) without return types