code: def _parse_yolo_row(row, classes):
      row_vals = row.split()
      target, xc, yc, w, h = row_vals[:5]
  
      try:
          label = classes[int(target)]
      except:
          label = str(target)
  
      bounding_box = [
          (float(xc) - 0.5 * float(w)),
          (float(yc) - 0.5 * float(h)),
          float(w),
          float(h),
      ]
  
      if len(row_vals) > 5:
          confidence = float(row_vals[5])
      else:
          confidence = None
  
      return fol.Detection(
          label=label, bounding_box=bounding_box, confidence=confidence
      )
  
imports: import logging
  import os
  import warnings
  import yaml
  import eta.core.utils
  import fiftyone.core.labels
  import fiftyone.core.storage
  import fiftyone.utils.data
label_desc: Use image node_id 6 for calling a global function with example usage: _parse_yolo_row(row, classes) and returns: fol