Artificial leaf as mini-factory for medicine