Opioids, sometimes called narcotics, are a class of drugs that include the illegal drug heroin, synthetic opioids such as fentanyl,…