code: def _get_yolo_v5_labels_path(image_path):
      old = os.path.sep + "images" + os.path.sep
      new = os.path.sep + "labels" + os.path.sep
  
      chunks = image_path.rsplit(old, 1)
  
      if len(chunks) > 1:
          labels_path = new.join(chunks)
      elif image_path.startswith("images" + os.path.sep):
          labels_path = "labels" + image_path[len("images") :]
      else:
          raise ValueError(
              "Invalid image path '%s'. YOLOv5 image paths must contain '%s', "
              "which is replaced with '%s' to locate the corresponding labels"
              % (image_path, old, new)
          )
  
      root, ext = os.path.splitext(labels_path)
  
      if ext:
          ext = ".txt"
  
      return root + ext
  
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 5 for calling a global function with example usage: _get_yolo_v5_labels_path(image_path) and returns: unknown