Is there a Picade button test program?

Hi folks, I’ve just bought and built a picade cabinet, but finding some buttons are not functioning or recognised within RetroPie.

Is there a simple python program available that I can run on my Pi which shows if each button is sending a signal back to the picade board?

Thanks.