If something is wrong with your Mac, either you or the tech repairing your Mac will need to access the special diagnostics mode. You can do this by restarting your Mac and holding the D key. The results could give you some insight into the problem. See https://support.apple.com/en-us/HT202731 for details.
Here’s Apple’s official page: How to use Apple Diagnostics on your Mac