class_docstr: Tests all the bounding box related utilities.
class_docstr_tok: ["Tests","all","the","bounding","box","related","utilities","."]
docstr: Test for correctness of the box_cxcywh_to_xyxy operation.
docstr_tok: ["Test","for","correctness","of","the","box_cxcywh_to_xyxy","operation","."]
code: def test_box_cxcywh_to_xyxy(self):
      """Test for correctness of the box_cxcywh_to_xyxy operation."""
      cxcywh = jnp.array(
          [
              [[0.1, 0.3, 0.2, 0.4], [0.1, 0.3, 0.2, 0.4]],
              [[0.3, 0.2, 0.1, 0.4], [0.3, 0.2, 0.1, 0.4]],
          ],
          dtype=jnp.float32,
      )
      expected = jnp.array(
          [
              [[0.0, 0.1, 0.2, 0.5], [0.0, 0.1, 0.2, 0.5]],
              [[0.25, 0.0, 0.35, 0.4], [0.25, 0.0, 0.35, 0.4]],
          ],
          dtype=jnp.float32,
      )
      output = box_utils.box_cxcywh_to_xyxy(cxcywh)
      self.assertSequenceAlmostEqual(
          expected.flatten(), output.flatten(), places=5
      )
  
      # also test whether an exception is raised when a non-box input is provided
      with self.assertRaises(ValueError):
          cxcywh = jnp.array(np.random.uniform(size=(2, 3, 5)))
          _ = box_utils.box_cxcywh_to_xyxy(cxcywh)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  import jax.numpy
  import numpy
  from scenic.model_lib.base_models import box_utils
  from shapely import geometry
label_desc: Use image node_id 1 for calling the BoxUtilsTest obj's underlying member method code with example usage: obj.test_box_cxcywh_to_xyxy() without return types