code: def horizontal_flip_ref(image, boxes):
      if len(boxes.shape) == 1:
          boxes[0], boxes[2] = 1.0 - boxes[2], 1.0 - boxes[0]
      else:
          boxes[:, 0], boxes[:, 2] = (
              1.0 - boxes[:, 2],
              1.0 - boxes[:, 0],
          )
  
      return np.fliplr(image), boxes
  
imports: import argparse
  import os
  from math import ceil, sqrt
  import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 2 for calling a global function with example usage: horizontal_flip_ref(image, boxes) and returns: np,  boxes