def _send_trait_items_event(self, name, event, items_event=None):
        """ Send a TraitDictEvent to the owning object if there is one.
        """
        object = self.object()
        if object is not None:
            if items_event is None and hasattr(self, 'trait'):
                items_event = self.trait.items_event()
            object.trait_items_event(name, event, items_event)
dataset/ETHPy150Open enthought/traits/traits/trait_handlers.py/TraitDictObject._send_trait_items_event/original