def make_submission_entry(image_id, predictions):
    """Convenience function to create a prediction dictionary that can be
        written to a csv file.
    Args:
        image_id : The image id.
        predictions [] : A list of predictions.
    Returns:
        {} : A dict that can be used by a csv.DictWriter to write the data.
    """

    predictions_str = " ".join(map(str, predictions))
    return {
        "image_id" : image_id,
        "predictions" : predictions_str
    }