code: def test_compose():
      output_size = (16, 16)
      transfo = T.Compose([T.Resize((32, 32)), T.Resize(output_size)])
      input_t = tf.random.uniform(shape=[64, 64, 3], minval=0, maxval=1)
      out = transfo(input_t)
  
      assert out.shape[:2] == output_size
      assert len(repr(transfo).split("\n")) == 6
  
imports: import math
  import numpy
  import pytest
  import tensorflow
  from doctr import transforms
  from doctr.transforms.functional import crop_detection, rotate_sample
label_desc: Use image node_id 2 for calling a global function with example usage: test_compose() without return types