code: def check_hip_version(compiler, settings):
      global _hip_version
      try:
          out = build_and_run(
              compiler,
              """
          #include <hip/hip_version.h>
          #include <stdio.h>
          int main() {
            printf("%d", HIP_VERSION);
            return 0;
          }
          """,
              include_dirs=settings["include_dirs"],
          )
  
      except Exception as e:
          utils.print_warning("Cannot check HIP version", str(e))
          return False
  
      _hip_version = int(out)
  
      if _hip_version < minimum_hip_version:
          utils.print_warning(
              "ROCm/HIP version is too old: %d" % _hip_version,
              "ROCm 3.5.0 or newer is required",
          )
          return False
  
      return True
  
imports: import contextlib
  import os
  import re
  import shlex
  import shutil
  import subprocess
  import sys
  import tempfile
  from typing import List, Set
  import cupy_builder
  import cupy_builder.install_utils
  from cupy_builder import _environment
  from cupy_builder._context import Context
label_desc: Use image node_id 10 for calling a global function with example usage: check_hip_version(compiler, settings) and returns: True, False, False