code: def capture_event(self, event, hint=None):
          # type: (Dict[str, Any], Dict[str, Any]) -> Optional[str]
          
          client, scope = self._stack[-1]
          if client is not None:
              rv = client.capture_event(event, hint, scope)
              if rv is not None:
                  self._last_event_id = rv
              return rv
          return None
docs: Captures an event.  The return value is the ID of the event.
  
          The event is a dictionary following the Sentry v7/v8 protocol
          specification.  Optionally an event hint dict can be passed that
          is used by processors to extract additional information from it.
          Typically the event hint object would contain exception information.