class_docstr: Unit test NormalizeBoxes.
class_docstr_tok: ["Unit","test","NormalizeBoxes","."]
docstr: Numerically test whether boxes are being normalized correctly.
docstr_tok: ["Numerically","test","whether","boxes","are","being","normalized","correctly","."]
code: def test_normalize_boxes(self):
      """Numerically test whether boxes are being normalized correctly."""
      features = fake_decoded_features(2, 4, 8)
      features["label"]["boxes"] = tf.constant(
          [[0.5, 0.5, 3.5, 2.5], [4.5, 1.5, 5.5, 3.5]], dtype=tf.float32
      )
      # area does not matter as area remains unnormalized
      del features["label"]["area"]
  
      expected = copy.deepcopy(features)
      expected["label"]["boxes"] = tf.constant(
          [[0.25, 0.375, 0.375, 0.5], [0.625, 0.625, 0.125, 0.5]],
          dtype=tf.float32,
      )
  
      features_normalized = transforms.NormalizeBoxes()(features)
  
      self._assert_features_equal(
          features_normalized, expected, msg="Test normalization"
      )
  
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 NormalizeBoxesTest obj's underlying member method code with example usage: obj.test_normalize_boxes() without return types