Hallucinations are a type of sensory experience that occurs in the absence of external stimuli. They can be caused by…