code: def test_jpegquality():
      transfo = T.RandomJpegQuality(min_quality=50)
      input_t = tf.cast(tf.fill([32, 32, 3], 1), dtype=tf.float32)
      out = transfo(input_t)
      assert out.shape == input_t.shape
  
      # FP16
      input_t = tf.cast(tf.fill([32, 32, 3], 1), dtype=tf.float16)
      out = transfo(input_t)
      assert out.dtype == tf.float16
  
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 12 for calling a global function with example usage: test_jpegquality() without return types