Opiates are a class of drugs that have been used for thousands of years to relieve pain and anxiety. They…