def get_dest(output_bucket, output_prefix, output_version, date=None, sample_id=None):
    """
    Stitches together an s3 destination.

    :param output_bucket: s3 output_bucket
    :param output_prefix: s3 output_prefix (within output_bucket)
    :param output_version: dataset output_version
    :retrn str ->
    s3://output_bucket/output_prefix/output_version/submissin_date_s3=[date]/sample_id=[sid]
    """
    suffix = ""
    if date is not None:
        suffix += "/submission_date_s3={}".format(date)
    if sample_id is not None:
        suffix += "/sample_id={}".format(sample_id)
    return (
        "s3://"
        + "/".join([output_bucket, output_prefix, output_version])
        + suffix
        + "/"
    )