[`GPTQ`, `CompressedTensors`] Fix unsafe imports and metada check (#34815)
* fix gptq creation when optimum is not installed + fix metadata checking
* fix compressed tensors as well
* style
* pray for ci luck on flaky tests :prayge:
* trigger ci
---------
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
Co-authored-by: Mohamed Mekkouri <93391238+MekkCyber@users.noreply.github.com>