def create_utterance(intent, utterance, *labels):
    """
    Add an example LUIS utterance from utterance text and a list of
    labels.  Each label is a 2-tuple containing a label name and the
    text within the utterance that represents that label.
    Utterances apply to a specific intent, which must be specified.
    """
    text = utterance.lower()

    def label(name, value):
        value = value.lower()
        start = text.index(value)
        return dict(entity_name=name, start_char_index=start,
                    end_char_index=start + len(value))

    return dict(text=text, intent_name=intent,
                entity_labels=[label(n, v) for (n, v) in labels])