[nnc] Cleaned up compress buffer tests to use BufHandle instead of Buf (#61715)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61715
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D29715755
Pulled By: navahgar
fbshipit-source-id: 453adac8f5b13263c39d96b6b4086425a01bae54