code: def _rocm_version(rocm_install_path):
      version_file = os.path.join(
          rocm_install_path, ".info/version-dev"
      )
      if not os.path.exists(version_file):
          return ""
      version_numbers = []
      with open(version_file) as f:
          version_string = f.read().strip()
          version_numbers = version_string.split(".")
      return str(
          version_numbers[0]
          + "."
          + version_numbers[1]
          + "."
          + version_numbers[2].split("-")[0]
      )
  
imports: import argparse
  import os
  import re
  import subprocess
  import time
label_desc: Use image node_id 15 for calling a global function with example usage: _rocm_version(rocm_install_path) and returns: str, str