code: def load_yolo_annotations(txt_path, classes):
      """Loads the YOLO-style annotations from the given TXT file.
  
      The txt file should be a space-delimited file where each row corresponds
      to an object in one the following formats::
  
          <target> <x-center> <y-center> <width> <height>
          <target> <x-center> <y-center> <width> <height> <confidence>
  
      where ``target`` is the zero-based integer index of the object class label
      from ``classes`` and the bounding box coordinates are expressed as relative
      coordinates in ``[0, 1] x [0, 1]``.
  
      Args:
          txt_path: the path to the annotations TXT file
          classes: the list of class label strings
  
      Returns:
          a :class:`fiftyone.core.detections.Detections`
      """
      detections = []
      for row in _read_file_lines(txt_path):
          detection = _parse_yolo_row(row, classes)
          detections.append(detection)
  
      return fol.Detections(detections=detections)
  
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 2 for calling a global function with example usage: load_yolo_annotations(txt_path, classes) and returns: fol