class_docstr: Unit test RandomResize.
class_docstr_tok: ["Unit","test","RandomResize","."]
docstr: Test whether resize produces the correct output shape.
docstr_tok: ["Test","whether","resize","produces","the","correct","output","shape","."]
code: def test_resize_shape(self, size, max_size, expected_shape):
      """Test whether resize produces the correct output shape."""
      features = fake_decoded_features(7, 5, 4)
      features_resized = transforms.resize(
          features, size, max_size=max_size
      )
      self.assertSequenceEqual(
          features_resized["inputs"].shape, expected_shape
      )
  
imports: import copy
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from scenic.projects.baselines.detr import transforms
  import tensorflow
label_desc: Use image node_id 1 for calling the RandomResizeTest obj's underlying member method code with example usage: obj.test_resize_shape(size, max_size, expected_shape) without return types