def METHOD_NAME(results, confidence_thresh=None):
    """Converts ``ultralytics.YOLO`` boxes to FiftyOne format.
    Args:
        results: a single or list of ``ultralytics.engine.results.Results``
        confidence_thresh (None): a confidence threshold to filter boxes
    Returns:
        a single or list of :class:`fiftyone.core.labels.Detections`
    """
    single = not isinstance(results, list)
    if single:
        results = [results]
    batch = [
        _to_detections(r, confidence_thresh=confidence_thresh) for r in results
    ]
    if single:
        return batch[0]
    return batch