code: def test_resize_shorted_edge_scriptable(self):
      def f(image):
          newh, neww = T.ResizeShortestEdge.get_output_shape(
              image.shape[-2], image.shape[-1], 80, 133
          )
          return F.interpolate(image.unsqueeze(0), size=(newh, neww))
  
      input = torch.randn(3, 10, 10)
      script_f = torch.jit.script(f)
      self.assertTrue(torch.allclose(f(input), script_f(input)))
  
      # generalize to new shapes
      input = torch.randn(3, 8, 100)
      self.assertTrue(torch.allclose(f(input), script_f(input)))
  
imports: import logging
  import numpy
  import unittest
  from unittest import mock
  import torch
  from PIL import Image, ImageOps
  from torch.nn import functional
  from detectron2.config import get_cfg
  from detectron2.data import detection_utils
  from detectron2.data import transforms
  from detectron2.utils.logger import setup_logger
label_desc: Use image node_id 14 for calling the TestTransforms obj's underlying member method code with example usage: obj.test_resize_shorted_edge_scriptable() and returns: F