import pickle


def choices_from_pickle(paths):
    """
    Get conformer choices as RDKit mols from pickle paths.
    Args:
        paths (list[str]): conformer path for each of the two
            molecules being compared.
    Returns:
        fp_choices (list[list[rdkit.Chem.rdchem.Mol]]):
            RDKit mol choices for each of the two molecules.
    """
    fps_choices = []
    for path in paths:
        with open(path, "rb") as f:
            dic = pickle.load(f)
        choices = [sub_dic["rd_mol"] for sub_dic in dic["conformers"]]
        for mol in choices:
            mol.SetProp("_Name", "test")
        fps_choices.append(choices)
    return fps_choices