def _id(self):
        """The ObjectId of the document, or ``None`` if it has not been added
        to the database.
        """
        _id = self._doc.id
        return ObjectId(_id) if _id is not None else None
The ObjectId of the document, or ``None`` if it has not been added
        to the database.
        
fiftyone/core/document.py