def METHOD_NAME(instance, serialized_event_request, result, rate_limit):
    request = None
    if serialized_event_request:
        request = EventRequest.deserialize(serialized_event_request)
    metadata = EventMetadata(request=request)
    payload = {"instance": instance.serialize_for_event(), "sync": result}
    if rate_limit:
        payload["instance"]["rate_limit"] = rate_limit
    event = WSOneInstanceSyncFinished(metadata, payload)
    event.post()