class_docstr: Resize and Keep Aspect Ratio
      
class_docstr_tok: ["Resize","and","Keep","Aspect","Ratio"]
code: def __repr__(self):
      if isinstance(self.interpolation, (tuple, list)):
          interpolate_str = " ".join(
              [interp_mode_to_str(x) for x in self.interpolation]
          )
      else:
          interpolate_str = interp_mode_to_str(self.interpolation)
      format_string = self.__class__.__name__ + "(size={0}".format(
          self.size
      )
      format_string += f", interpolation={interpolate_str}"
      format_string += f", longest={self.longest:.3f}"
      format_string += (
          f", random_scale_prob={self.random_scale_prob:.3f}"
      )
      format_string += (
          f", random_scale_range=("
          f"{self.random_scale_range[0]:.3f}, {self.random_aspect_range[1]:.3f})"
      )
      format_string += (
          f", random_aspect_prob={self.random_aspect_prob:.3f}"
      )
      format_string += (
          f", random_aspect_range=("
          f"{self.random_aspect_range[0]:.3f}, {self.random_aspect_range[1]:.3f}))"
      )
      return format_string
  
imports: import math
  import numbers
  import random
  import warnings
  from typing import List, Sequence, Tuple, Union
  import torch
  import torchvision.transforms.functional
  from PIL import Image
  import numpy
label_desc: Use image node_id 4 for calling the ResizeKeepRatio obj's underlying member method code with example usage: obj.__repr__() and returns: format_string