def trim_dropbox_link(path):
    """Trim a dropbox link to extract file name.

    e.g.
    https://www.dropbox.com/s/m8qlfp0cjnn4ka7/20002_1065.gwas.
    imputed_v3.both_sexes.tsv.bgz?dl=0
    -->
    https://www.dropbox.com/s/m8qlfp0cjnn4ka7/20002_1065.gwas.
    imputed_v3.both_sexes.tsv.bgz
    """
    path = path.replace('?dl=0', '')
    return path