def parse_metafold(metafold_file):
    """
        Extracts name of metafold as key and associated pdb as
        value in dictionary.

        Args:
            metafold_file (str): A METAFOLD.list file containing for a given line a
                           template name and a pdb file name associated.

        Returns:
            dict: A dictionary with key = template name and value = pdb file.
    """
    metafold_dict = {}  # Initalization of the dictionary
    with open(metafold_file, "r") as file:
        for line in file:
            metafold_dict[line.split()[0]] = line.split()[1]
    return metafold_dict