code: def assert_boxes_are_relative(boxes: tf.Tensor):
      """Checks that boxes conform to the relative (normalized) format."""
      tf.debugging.assert_type(
          boxes,
          tf.float32,
          f"Expected boxes to be relative (float dtype), got {boxes.dtype}.",
      )
      not_padding = tf.reduce_any(boxes != -1, axis=-1)
      tf.debugging.assert_greater_equal(
          boxes[not_padding], 0.0, "Relative boxes must be >= 0."
      )
      tf.debugging.assert_less_equal(
          boxes[not_padding], 1.0, "Relative boxes must be <= 1."
      )
  
file_path: scenic/scenic/projects/owl_vit/preprocessing/transforms.py
imports: from typing import Any, Optional, Sequence, Tuple, Union
  import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: assert_boxes_are_relative(boxes) without return types