def ds_zip_in_list_of_files(xml_file, file_list):
    """
    Given an XML file and a list of files
    check the list of files contains a ds zip file that matches the xml file
    """
    doi_id = xml_file.split("-")[-1].split(".")[0]
    for file in file_list:
        if str(doi_id) in file and file.endswith("ds.zip"):
            return True
    return False