code: def _find_hipruntime_config(rocm_install_path):
      def hipruntime_version_number(path):
          possible_version_files = [
              "include/hip/hip_version.h",  # ROCm 5.2
              "hip/include/hip/hip_version.h",  # ROCm 5.1 and prior
          ]
          version_file = None
          for f in possible_version_files:
              version_file_path = os.path.join(path, f)
              if os.path.exists(version_file_path):
                  version_file = version_file_path
                  break
          if not version_file:
              raise ConfigError(
                  "HIP Runtime version file not found in {}".format(
                      possible_version_files
                  )
              )
  
          # This header file has an explicit #define for HIP_VERSION, whose value
          # is (HIP_VERSION_MAJOR * 100 + HIP_VERSION_MINOR)
          # Retreive the major + minor and re-calculate here, since we do not
          # want get into the business of parsing arith exprs
          major = _get_header_version(version_file, "HIP_VERSION_MAJOR")
          minor = _get_header_version(version_file, "HIP_VERSION_MINOR")
          return 100 * major + minor
  
      hipruntime_config = {
          "hipruntime_version_number": hipruntime_version_number(
              rocm_install_path
          )
      }
  
      return hipruntime_config
  
imports: import io
  import os
  import re
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: _find_hipruntime_config(rocm_install_path) and returns: hipruntime_config, unknown