docstr: Args:
      short_edge_length (list[min, max])
      max_size (int): maximum allowed longest edge length.
docstr_tok: ["Args",":","short_edge_length","(","list","[","min",",","max","]",")","max_size","(","int",")",":","maximum","allowed","longest","edge","length","."]
code: def __init__(self, short_edge_length, max_size=sys.maxsize):
      """
      Args:
          short_edge_length (list[min, max])
          max_size (int): maximum allowed longest edge length.
      """
      self.interp_method = "bilinear"
      self.max_size = max_size
      self.short_edge_length = short_edge_length
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/research_projects/lxmert/processing_image.py
imports: import sys
  from typing import Tuple
  import numpy
  import torch
  from PIL import Image
  from torch import nn
  from transformers.image_utils import PILImageResampling
  from utils import img_tensorize
label_desc: Use image node_id 1 to create a new ResizeShortestEdge object  with example: obj = ResizeShortestEdge(short_edge_length, max_size)