<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_object(self):
 """We memoize the access to this function in case a second call is made."""

        if self._object:
            return self._object
        self._object = super().get_object()
        if not self.AUDITOR_EVENT_TYPES:
            return self._object
        method = self.request.method
        event_type = self.AUDITOR_EVENT_TYPES.get(method)
        if method == 'GET' and event_type and is_user(self.request.user):
            auditor.record(event_type=event_type,
                           instance=self._object,
                           actor_id=self.request.user.id,
                           actor_name=self.request.user.username)
        elif method == 'DELETE' and event_type and is_user(self.request.user):
            auditor.record(event_type=event_type,
                           instance=self._object,
                           actor_id=self.request.user.id,
                           actor_name=self.request.user.username)
        return self._object