I'd be less than enthuisiastic about relying on a function named "yolo<something>". I take "You Only Live Once" (YOLO) to express approval of risk-taking, which isn't usually my intent when I rely on an API.
https://blog.roboflow.com/whats-new-in-yolov8/
In one example, dictionary dispatch decides what model to use: YOLOv5, v8, SAM, and others.