Necessary and Probably Sufficient Test for Finding Valid Instrumental Variables

This is an implementation of Amit Sharma’s NPS test.