code: def _find_rocblas_config(rocm_install_path):
      def rocblas_version_numbers(path):
          possible_version_files = [
              "include/rocblas/internal/rocblas-version.h",  # ROCm 5.2
              "rocblas/include/internal/rocblas-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(
                  "rocblas version file not found in {}".format(
                      possible_version_files
                  )
              )
          major = _get_header_version(
              version_file, "ROCBLAS_VERSION_MAJOR"
          )
          minor = _get_header_version(
              version_file, "ROCBLAS_VERSION_MINOR"
          )
          patch = _get_header_version(
              version_file, "ROCBLAS_VERSION_PATCH"
          )
          return major, minor, patch
  
      major, minor, patch = rocblas_version_numbers(rocm_install_path)
  
      rocblas_config = {
          "rocblas_version_number": _get_composite_version_number(
              major, minor, patch
          )
      }
  
      return rocblas_config
  
imports: import io
  import os
  import re
  import sys
label_desc: Use image node_id 8 for calling a global function with example usage: _find_rocblas_config(rocm_install_path) and returns: rocblas_config, major,  minor,  patch