class_docstr: Resize the input image to the given size
class_docstr_tok: ["Resize","the","input","image","to","the","given","size"]
code: def __init__(
      self,
      size: Union[int, Tuple[int, int]],
      interpolation=F.InterpolationMode.BILINEAR,
      preserve_aspect_ratio: bool = False,
      symmetric_pad: bool = False,
  ) -> None:
      super().__init__(size, interpolation, antialias=True)
      self.preserve_aspect_ratio = preserve_aspect_ratio
      self.symmetric_pad = symmetric_pad
  
      if not isinstance(self.size, (int, tuple, list)):
          raise AssertionError(
              "size should be either a tuple, a list or an int"
          )
  
imports: import math
  from typing import Any, Dict, Optional, Tuple, Union
  import numpy
  import torch
  from PIL.Image import Image
  from torch.nn.functional import pad
  from torchvision.transforms import functional
  from torchvision.transforms import transforms
  from ..functional.pytorch import random_shadow
label_desc: Use image node_id 1 to create a new Resize object from inherited base class: T with example: obj = Resize(size, interpolation, preserve_aspect_ratio, symmetric_pad)