'>>> record(Event())
>>> record(\'organization.created\', organization)'

def record(self, event_or_event_type, instance=None, **kwargs):

    if isinstance(event_or_event_type, six.string_types):
        event = self.event_manager.get(event_or_event_type).from_instance(instance, **kwargs)
    else:
        event = event_or_event_type
    self.record_event(event)
