code: def get_library_version_analytics() -> Dict[str, Any]:
      modules = [
          "determined",
          "model_hub",
          "torch",
          "tensorflow",
          "transformers",
          "mmcv",
          "mmdet",
      ]
      versions = {}
      for m in sys.modules:
          if m in modules:
              try:
                  versions[m] = sys.modules[m].__version__  # type: ignore
              except Exception:
                  pass
      return versions
  
file_path: determined/harness/determined/common/api/analytics.py
imports: import logging
  import os
  import sys
  from typing import Any, Dict, Type
  import analytics
label_desc: Use image node_id 1 for calling a global function with example usage: get_library_version_analytics() and returns: versions