async def get(
        self, db: AsyncSession, id: UUID, current_user: schemas.User
    ) -> Optional[Collection]:
        """Get a collection by its ID with computed ephemeral status."""
        # Get the collection using the parent method
        collection = await super().get(db, id=id, current_user=current_user)

        if collection:
            # Compute and set the ephemeral status
            collection = (await self._attach_ephemeral_status(db, [collection], current_user))[0]

        return collection
Get a collection by its ID with computed ephemeral status.
backend/airweave/crud/crud_collection.py