code: def ltrb_to_xywh(boxes):
      boxes = tf.convert_to_tensor(boxes)
      l = boxes[..., 0]
      t = boxes[..., 1]
      r = boxes[..., 2]
      b = boxes[..., 3]
      return tf.stack([(l + r) / 2, (t + b) / 2, r - l, b - t], axis=-1)
  
file_path: DALI/docs/examples/use_cases/tensorflow/yolov4/src/utils.py
imports: import tensorflow
  import numpy
  from inference import decode_prediction
label_desc: Use image node_id 3 for calling a global function with example usage: ltrb_to_xywh(boxes) and returns: tf