<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Install and import biothings_explorer
Step1:  Construct Meta-KG from SmartAPI
Step2:  Filter
Filter for Meta-KG operations with Gene as Input and ChemicalSubstance as output
Step3:  Find Meta-KG operations that converys Gene->Metabolize->ChemicalSubstance
Step4:  Filter for Knowledge Graph Operations supported by MyChem.info as API source
Step5:  Filter for API operations with drugbank as data source
<ASSISTANT_TASK:>
Python Code:
!pip install git+https://github.com/biothings/biothings_explorer.git
from biothings_explorer.smartapi_kg import MetaKG
Explanation: Install and import biothings_explorer
End of explanation
kg = MetaKG()
kg.constructMetaKG(source="remote")
Explanation: Construct Meta-KG from SmartAPI
End of explanation
kg.filter({"input_type": "Gene", "output_type": "ChemicalSubstance"})
Explanation: Filter
Filter for Meta-KG operations with Gene as Input and ChemicalSubstance as output
End of explanation
kg.filter({"input_type": "Gene", "output_type": "ChemicalSubstance", "predicate": "metabolize"})
Explanation: Find Meta-KG operations that converys Gene->Metabolize->ChemicalSubstance
End of explanation
kg.filter({"api_name": "MyChem.info API"})
Explanation: Filter for Knowledge Graph Operations supported by MyChem.info as API source
End of explanation
kg.filter({"source": "drugbank"})
Explanation: Filter for API operations with drugbank as data source
End of explanation
<END_TASK>