def test_infer_shape_matrix(self):
        x = theano.tensor.matrix()
        
        for op in self.ops:
            if not op.return_inverse:
                continue
            if op.return_index :
                f = op(x)[2]
            else:
                f = op(x)[1]
            self._compile_and_check([x],  
                                [f], 
                                [np.asarray(np.array([[2, 1], [3, 2],[2, 3]]),
                                            dtype=config.floatX)],
                                self.op_class)
Testing the infer_shape with a matrix.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/tensor/tests/test_extra_ops.py/test_Unique.test_infer_shape_matrix