def from_annotation_dict(cls, d):
        """Creates a :class:`VOCObject` from a VOC annotation dict.

        Args:
            d: an annotation dict

        Returns:
            a :class:`VOCObject`
        """
        name = d["name"]
        bndbox = VOCBoundingBox.from_bndbox_dict(d["bndbox"])

        # Handles CVAT exported attributes
        if "attributes" in d:
            cvat_attrs = d.pop("attributes", {}).pop("attribute", {})
            cvat_attrs = _ensure_list(cvat_attrs)
            cvat_attrs = {a["name"]: a["value"] for a in cvat_attrs}
            d.update(cvat_attrs)

        attributes = {
            k: _parse_attribute(d[k])
            for k in set(d.keys()) - {"name", "bndbox"}
        }
        return cls(name, bndbox, **attributes)
Creates a :class:`VOCObject` from a VOC annotation dict.

        Args:
            d: an annotation dict

        Returns:
            a :class:`VOCObject`
        
fiftyone/utils/voc.py