def from_coco(
        coords: Sequence[float],
        title: str = "",
    ) -> "BBox":
        """
        Create a bounding box from COCO format.

        COCO format represents bounding boxes as [x_min, y_min, width, height], where:
        - (x_min, y_min) are the pixel coordinates of the top-left corner.
        - width and height define the size of the bounding box in pixels.

        Args:
            coords (Sequence[float]): The bounding box coordinates in COCO format.
            title (str): The title of the bounding box.

        Returns:
            BBox: The bounding box data model.
        """
        validate_bbox(coords, float, int)
        bbox_coords = convert_bbox(coords, [], "coco", "voc")
        return BBox(title=title, coords=list(map(round, bbox_coords)))

        Create a bounding box from COCO format.

        COCO format represents bounding boxes as [x_min, y_min, width, height], where:
        - (x_min, y_min) are the pixel coordinates of the top-left corner.
        - width and height define the size of the bounding box in pixels.

        Args:
            coords (Sequence[float]): The bounding box coordinates in COCO format.
            title (str): The title of the bounding box.

        Returns:
            BBox: The bounding box data model.
        
src/datachain/model/bbox.py