code: def test_torch_max_size():
      image = _get_fake_img(400, 400)
      transf = fout.MaxResize(200)
      result = transf(image)
      assert result.size == (200, 200)
  
      image = _get_fake_img(400, 800)
      transf = fout.MaxResize(400)
      result = transf(image)
      assert result.size == (200, 400)
  
      image = _get_fake_img(400, 400)
  
      transf = fout.MaxResize((400, 200))
      result = transf(image)
      assert result.size == (200, 200)
  
file_path: fiftyone/tests/misc/torch_tests.py
imports: import unittest
  import numpy
  from PIL import Image
  import torch
  import torchvision
  import fiftyone
  import fiftyone.utils.torch
label_desc: Use image node_id 3 for calling a global function with example usage: test_torch_max_size() without return types