Add a Python method, output_sparse_tensor, to use sparse_tensor.out to write
a sparse tensor value to a file.
Modify the method that evaluates a tensor expression to return a pointer of the
MLIR sparse tensor for the result to delay the extraction of the coordinates and
non-zero values.
Implement the Tensor to_file method to evaluate the tensor assignment and write
the result to a file.
Add unit tests. Modify test golden files to reflect the change that TNS outputs
now have a comment line and two meta data lines.
Why don't we simply use
filecmp.cmp()
as in test_SpMM.py?
and test for the exact contents of the golden file vs computed file.
We don't have any accuracy issues, it should be sorted the same way always,
and that we verify the metadata for correctness too.