code: def _preprocess_hiprtc(source, options):
      # source is ignored
      if _cuda_hip_version >= 40400000:
          # HIP runtime headers can be no longer explicitly included on ROCm 4.5+
          code = """
          // hiprtc segfaults if the input code is empty
          __global__ void _cupy_preprocess_dummy_kernel_() { }
          """
      else:
          code = """
          // hiprtc segfaults if the input code is empty
          #include <hip/hip_runtime.h>
          __global__ void _cupy_preprocess_dummy_kernel_() { }
          """
  
      prog = _NVRTCProgram(code)
      try:
          result, _ = prog.compile(options)
      except CompileException as e:
          dump = _get_bool_env_variable(
              "CUPY_DUMP_CUDA_SOURCE_ON_ERROR", False
          )
          if dump:
              e.dump(sys.stderr)
          raise
      assert isinstance(result, bytes)
      return result
  
imports: import copy
  import hashlib
  import math
  import os
  import platform
  import re
  import shutil
  import subprocess
  import sys
  import tempfile
  import warnings
  from cupy.cuda import device
  from cupy.cuda import function
  from cupy.cuda import get_rocm_path
  from cupy_backends.cuda.api import driver
  from cupy_backends.cuda.api import runtime
  from cupy_backends.cuda.libs import nvrtc
  from cupy import _util
label_desc: Use image node_id 22 for calling a global function with example usage: _preprocess_hiprtc(source, options) and returns: result