Better check for packages availability (#23163)
* Better check for packages availability
* amend _optimumneuron_available
* amend torch_version
* amend PIL detection and lint
* lint
* amend _faiss_available
* remove overloaded signatures of _is_package_available
* fix sklearn and decord detection
* remove unused checks
* revert