ns for fx: add utils for l2 error and cosine similarity (#61380)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61380
Adds convenience wrappers for l2 error and cosine similarity
to NS utils.
Test Plan:
```
python test/test_quantization.py TestFXNumericSuiteCoreAPIs.test_extend_logger_results_with_comparison
```
Imported from OSS
Reviewed By: hx89
Differential Revision: D29600354
fbshipit-source-id: 670c44a44df7f345884cacf26ed3c885edbe9977