class_docstr: 对图像进行resize处理,该方法应放在ToTensor前
class_docstr_tok: ["\u5bf9\u56fe\u50cf\u8fdb\u884cresize\u5904\u7406",",","\u8be5\u65b9\u6cd5\u5e94\u653e\u5728ToTensor\u524d"]
code: def __init__(self, size=(300, 300)):
      self.resize = t.Resize(size)
  
imports: import random
  import torch
  import torchvision.transforms
  from torchvision.transforms import functional
  from src import dboxes300_coco, calc_iou_tensor, Encoder
label_desc: Use image node_id 1 to create a new Resize object from inherited base classes: object with example: obj = Resize(size)