import csv


def get_production_objectives(input_file):
    """
    List the target metabolites to produce

    It reads the input file and gets which metabolites has to
    be produced.
    --------------------------------------------
    Argument:
    input_file--str input file in .csv format dictionary like
    
    Return:
    production_objects: list of BiGG IDs of the target metabolites  
    """
    with open(input_file, newline='', encoding='utf-8-sig') as csvfile:
        reader = csv.DictReader(csvfile, dialect='excel')
        production_objects = []
        for row in reader:
            if (row['production'] in ('yes', 'Yes', 'Y', 'y', 'YES') and
                    row['metabolite_BiGG_ID']!= ''):
                production_objects.append(row['metabolite_BiGG_ID'])
    return production_objects