@staticmethod<EOL><INDENT>def verify(path):<DEDENT>
path = pathlib.Path(path)<EOL>valid = False<EOL>if path.suffix == "<STR_LIT>":<EOL><INDENT>try:<EOL><INDENT>nf = np.load(str(path), mmap_mode="<STR_LIT:r>", allow_pickle=False)<EOL><DEDENT>except (OSError, ValueError, IsADirectoryError):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>if len(nf.shape) == <NUM_LIT:2>:<EOL><INDENT>valid = True<EOL><DEDENT><DEDENT><DEDENT>return valid<EOL>
Verify that `path` has a supported numpy file format