code: def test_imagelist_from_tensors_scriptability(self):
      image_tensor_0 = torch.randn(10, 20, dtype=torch.float32)
      image_tensor_1 = torch.randn(12, 22, dtype=torch.float32)
      inputs = [image_tensor_0, image_tensor_1]
  
      def f(image_tensor: List[torch.Tensor]):
          return ImageList.from_tensors(image_tensor, 10)
  
      ret = f(inputs)
      ret_script = torch.jit.script(f)(inputs)
  
      self.assertEqual(len(ret), len(ret_script))
      self.assertTrue(torch.equal(ret.tensor, ret_script.tensor))
  
file_path: detectron2/tests/structures/test_imagelist.py
imports: import unittest
  from typing import List, Sequence, Tuple
  import torch
  from detectron2.structures import ImageList
label_desc: Use image node_id 3 for calling the TestImageList obj's underlying member method code with example usage: obj.test_imagelist_from_tensors_scriptability() and returns: ImageList