[ao][sparsity] Bug Fix: Retain mask and config while replacing data in data sparsifier (#82129)
Bug: The config and mask were being recreated while replacing data on the data sparsifier.
Fix: Introduced an argument `reuse_mask` which when set `True` uses the old mask. If new config is not
specified, the data sparsifier by default uses the old config with the new data.
Also, added unit tests to check this bug.
Test Plan:
```python test/test_ao_sparsity.py TestBaseDataSparsifier```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/82129
Approved by: https://github.com/z-a-f