code: def box_xyxy_to_cxcywh(
      x: Array, np_backbone: PyModule = jnp
  ) -> Array:
      """Converts boxes from [x, y, x', y'] format into [cx, cy, w, h] format."""
      x0, y0, x1, y1 = np_backbone.split(x, 4, axis=-1)
      b = [(x0 + x1) / 2, (y0 + y1) / 2, (x1 - x0), (y1 - y0)]
      return np_backbone.concatenate(b, axis=-1)
  
file_path: scenic/scenic/model_lib/base_models/box_utils.py
imports: from typing import Any, Union
  import jax.numpy
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: box_xyxy_to_cxcywh(x, np_backbone) and returns: np_backbone