code: def test_image_list_dataset_with_transform(self):
      height, width = 720, 1280
      with temp_image(height, width) as image_fpath:
          image_list = [image_fpath]
          category_list = [None]
          transform = ImageResizeTransform()
          dataset = ImageListDataset(
              image_list, category_list, transform
          )
          self.assertEqual(len(dataset), 1)
          data1, categories1 = (
              dataset[0]["images"],
              dataset[0]["categories"],
          )
          self.assertEqual(data1.shape, torch.Size((1, 3, 749, 1333)))
          self.assertEqual(data1.dtype, torch.float32)
          self.assertIsNone(categories1[0])
  
file_path: detectron2/projects/DensePose/tests/test_image_list_dataset.py
imports: import contextlib
  import os
  import tempfile
  import unittest
  import torch
  from torchvision.utils import save_image
  from densepose.data.image_list_dataset import ImageListDataset
  from densepose.data.transform import ImageResizeTransform
label_desc: Use image node_id 2 for calling the TestImageListDataset obj's underlying member method code with example usage: obj.test_image_list_dataset_with_transform() without return types