forked from tinygrad/tinygrad
it checks if `axis` is a valid permutation, which is the same as `sorted(axis) == list(range(len(self.shape)))`
it checks if `axis` is a valid permutation, which is the same as `sorted(axis) == list(range(len(self.shape)))`