def new(self, event, collection=None):
        calendar = collection if collection is not None else event.calendar
        if hasattr(event, 'etag'):
            assert not event.etag
        if self._calendars[calendar]['readonly']:
            raise ReadOnlyCalendarError()

        with self._backend.at_once():

            try:
                href, etag = self._storages[calendar].upload(event)
            except AlreadyExistingError as Error:
                href = getattr(Error, 'existing_href', None)
                raise DuplicateUid(href)
            self._backend.update(event.raw, href, etag, calendar=calendar)
            self._backend.set_ctag(self._local_ctag(calendar), calendar=calendar)
Gets the 4096-dimensional CNN features for the given COCO
dataset/ETHPy150Open pimutils/khal/khal/khalendar/khalendar.py/CalendarCollection.new--crossover with--dataset/ETHPy150Open avisingh599/visual-qa/scripts/features.py/get_images_matrix