Codeine is an opiate and prodrug of morphine used to treat pain, coughing, and diarrhea and is commonly abused. It…