code: def test_resize_and_normalize_matches_generalized_rcnn_transform(
      self,
  ):
      loader = TorchImageLoader(
          resize=True, normalize=True, size_divisibility=32
      )
      transform = torchvision.models.detection.transform.GeneralizedRCNNTransform(
          loader.min_size,
          loader.max_size,
          loader.pixel_mean,
          loader.pixel_std,
      )
  
      loaded_image, _ = loader([self.image_fixture_path])
  
      raw_image, _ = TorchImageLoader(resize=False, normalize=False)(
          self.image_fixture_path
      )
      transformed_raw_image, _ = transform([raw_image])
  
      assert loaded_image.shape == transformed_raw_image.tensors.shape
  
file_path: allennlp/tests/data/image_loader_test.py
imports: import pytest
  import torch
  import torchvision
  from allennlp.common.testing import AllenNlpTestCase, multi_device
  from allennlp.data.image_loader import TorchImageLoader
label_desc: Use image node_id 4 for calling the TorchImageLoaderTest obj's underlying member method code with example usage: obj.test_resize_and_normalize_matches_generalized_rcnn_transform() without return types