Can the Fantasy Wizard Trope Be Realistic?

It’s rather obvious that the classic fantasy wizard trope isn’t realistic, but YES, if done properly, a wizard can be realistic, especially in a story reflecting the Early Middle Ages, a time also known as the Dark Ages, during and after the steady decline of the Roman Empire. How so?