code: def transform_object_detection_labels(test, target_column, classes):
      """Transforms the object detection labels to one common format.
  
      :param test: The test dataset.
      :type test: pandas.DataFrame
      :param target_column: The column containing the labels.
      :type target_column: str
      """
      label_dict = classes_to_dict(classes)
      for i in range(len(test)):
          object_labels = test[target_column][i]
          image_details = None
          if IMAGE_DETAILS in test:
              image_details = test[IMAGE_DETAILS][i]
          if len(object_labels) > 0 and isinstance(
              object_labels[0], dict
          ):
              if image_details:
                  width = image_details[WIDTH]
                  height = image_details[HEIGHT]
                  image_labels = []
                  for label in object_labels:
                      class_name = label[LABEL]
                      class_id = label_dict[class_name]
  
                      xmin = label[TOP_X] * width
                      ymin = label[TOP_Y] * height
  
                      xmax = label[BOTTOM_X] * width
                      ymax = label[BOTTOM_Y] * height
  
                      if IS_CROWD not in label:
                          label[IS_CROWD] = 0
  
                      image_labels.append(
                          [
                              class_id,
                              int(xmin),
                              int(ymin),
                              int(xmax),
                              int(ymax),
                              int(label[IS_CROWD]),
                          ]
                      )
                  test[target_column][i] = image_labels
              else:
                  invalid_msg = "Invalid label format for conversion: "
                  err = (
                      invalid_msg
                      + "Image details and label must be present"
                  )
                  raise ValueError(err)
      return test
  
imports: import numpy
  from responsibleai_vision.common.constants import ImageColumns
  from responsibleai_vision.utils.image_reader import get_image_from_path
label_desc: Use image node_id 4 for calling a global function with example usage: transform_object_detection_labels(test, target_column, classes) and returns: test