code: def __call__(self, data):
      if self.random_interp:
          interp = np.random.choice(self.interps)
      else:
          interp = cv2.INTER_LINEAR
      data["trans_info"].append(("resize", data["img"].shape[0:2]))
      data["img"] = functional.resize(
          data["img"], self.target_size, interp
      )
      for key in data.get("gt_fields", []):
          if key == "trimap":
              data[key] = functional.resize(
                  data[key], self.target_size, cv2.INTER_NEAREST
              )
          else:
              data[key] = functional.resize(
                  data[key], self.target_size, interp
              )
      return data
  
imports: import os
  import random
  import string
  import cv2
  import numpy
  from paddleseg.transforms import functional
  from paddleseg.cvlibs import manager
  from paddleseg.utils import seg_env
  from PIL import Image
label_desc: Use image node_id 2 for calling the Resize obj's underlying member method code with example usage: obj.__call__(data) and returns: data