PR #10290: [GPU][NFC] Unify few methods fetching DNN version info.
PR #10290: [GPU][NFC] Unify few methods fetching DNN version info.

Imported from GitHub PR https://github.com/openxla/xla/pull/10290


Copybara import of the project:

--
043ef2be61ff3fb39e99824087c4a69c0496c997 by Ilia Sergachev <isergachev@nvidia.com>:

[GPU][NFC] Unify few methods fetching DNN version info.

Merging this change closes #10290

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10290 from openxla:cleanup_dnn_version 043ef2be61ff3fb39e99824087c4a69c0496c997
