def get_vd_dialogue(d_id, dataset):
    """Retrieve a VisDial dialogue."""
    caption = dataset['data']['dialogs'][d_id]['caption'] + '.'
    turns = []
    for qa in dataset['data']['dialogs'][d_id]['dialog']:
        q = dataset['data']['questions'][qa['question']] + '? '
        a = dataset['data']['answers'][qa['answer']] + '.'
        turns.append((q + a))
    return caption, turns