def METHOD_NAME(phenotypes, hpo_info):
    for phenotype in phenotypes:
        if 'id' in phenotype and phenotype['id'].startswith('HP:') and phenotype['id'] in hpo_info:
            if 'name' not in phenotype or not phenotype['name'] or phenotype['name'] == phenotype['id']:
                phenotype['name'] = hpo_info[phenotype['id']]
            if 'source' not in phenotype or not phenotype['source']:
                phenotype['source'] = 'HPO'
    return phenotypes