code: def test_scale_to_target_aspect_ratio(self):
      # (h:450, w:210) fitting (160, 320) -> (160, 210*160/450)
      scaled_image = self.processor.resize(
          self.sample_image, size=self.size
      )
      self.assertEqual(scaled_image.shape[0], 160)
      self.assertEqual(scaled_image.shape[1], 74)
  
file_path: transformers/tests/models/fuyu/test_image_processing_fuyu.py
imports: import unittest
  import numpy
  from transformers import is_torch_available, is_vision_available
  from transformers.testing_utils import require_torch, require_torchvision, require_vision
label_desc: Use image node_id 3 for calling the TestFuyuImageProcessor obj's underlying member method code with example usage: obj.test_scale_to_target_aspect_ratio() without return types