Python Check If Type Is Numpy Open