code: def rescale_pytorch(
      x: ep.PyTorchTensor, target_shape: List[int]
  ) -> ep.PyTorchTensor:
      import torch
  
      img = x.raw
  
      img_resized = torch.nn.functional.interpolate(
          img,
          size=target_shape[2:],
          mode="bilinear",
          align_corners=False,
      )
  
      return ep.PyTorchTensor(img_resized)
  
imports: from typing import Union, List, Tuple
  import eagerpy
label_desc: Use image node_id 4 for calling a global function with example usage: rescale_pytorch(x, target_shape) and returns: ep