def tomatrix(self):
        if self.rank() != 2:
            raise ValueError('Dimensions must be of size of 2')

        return Matrix(self.shape[0], self.shape[1], self._array)
Can the library work the same with custom ``has_password`` and
dataset/ETHPy150Open sympy/sympy/sympy/tensor/array/dense_ndim_array.py/DenseNDimArray.tomatrix--crossover with--dataset/ETHPy150Open jpscaletti/authcode/tests/test_auth.py/test_replace_hash_password_method