code: def _compile_func(kernel_name, code):
      # workaround for hipRTC
      extra_source = (
          core._get_header_source() if runtime.is_hip else None
      )
      mod = compiler._compile_module_with_cache(
          code, options=("--std=c++11",), extra_source=extra_source
      )
      return mod.get_function(kernel_name)
  
file_path: cupy/tests/cupy_tests/core_tests/test_function.py
imports: import unittest
  import pytest
  import numpy
  import cupy
  from cupy._core import core
  from cupy.cuda import compiler
  from cupy.cuda import runtime
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: _compile_func(kernel_name, code) and returns: mod