def METHOD_NAME(py_log_posteriors, py_seq_lengths, py_seq_tags):
    """
    :param numpy.ndarray py_log_posteriors: 3d (time,batch,label)
    :param numpy.ndarray py_seq_lengths: 1d (batch)
    :param list[str] py_seq_tags:
    :return: (loss, error_signal), error_signal has the same shape as posteriors. loss is a 1d-array (batch).
    :rtype: (numpy.ndarray, numpy.ndarray)
    """
    try:
        return py_get_sprint_loss_and_error_signal(
            sprint_opts=sprint_opts,
            log_posteriors=py_log_posteriors,
            seq_lengths=py_seq_lengths,
            seq_tags=py_seq_tags,
        )
    except Exception:
        print("Exception in py_wrap_get_sprint_loss_and_error_signal:")
        import sys
        sys.excepthook(*sys.exc_info())
        raise