def METHOD_NAME(chembl_id):
    """
    mapping between a drug and Disease Ontology IDs and/or Human Phenotype Ontology IDs corresponding to indications
    :param chembl_id: The CHEMBL ID for a drug
    :return: A dictionary with two fields ('indication' and 'contraindication'). Each field is a set of strings
            containing the found hp / omim / doid ids or empty set if none were found
    """
    indication_onto_set = set()
    contraindication_onto_set = set()
    if not isinstance(chembl_id, str):
        return {'indications': indication_onto_set, "contraindications": contraindication_onto_set}
    drug_use = QueryMyChem.get_drug_use(chembl_id)
    indications = drug_use['indications']
    contraindications = drug_use['contraindications']
    sm = SynonymMapper()
    for indication in indications:
        if 'snomed_concept_id' in indication.keys():
            oxo_results = sm.get_all_from_oxo('SNOMEDCT:' + str(indication['snomed_concept_id']), ['DOID', 'OMIM', 'HP'])
            if oxo_results is not None:
                for oxo_result in oxo_results:
                    indication_onto_set.add(oxo_result)
            else:
                oxo_results = sm.get_all_from_oxo('SNOMEDCT:' + str(indication['snomed_concept_id']), ['UMLS'])
                if oxo_results is not None:
                    for oxo_result in oxo_results:
                        indication_onto_set.add(oxo_result)
    for contraindication in contraindications:
        if 'snomed_concept_id' in contraindication.keys():
            oxo_results = sm.get_all_from_oxo('SNOMEDCT:' + str(contraindication['snomed_concept_id']), ['DOID', 'OMIM', 'HP'])
            if oxo_results is not None:
                for oxo_result in oxo_results:
                    contraindication_onto_set.add(oxo_result)
            else:
                oxo_results = sm.get_all_from_oxo('SNOMEDCT:' + str(contraindication['snomed_concept_id']), ['UMLS'])
                if oxo_results is not None:
                    for oxo_result in oxo_results:
                        contraindication_onto_set.add(oxo_result)
    return {'indications': indication_onto_set, "contraindications": contraindication_onto_set}