code: def test_reuse():
      counter = 0
  
      def inc_counter(*args, **kwargs):
          nonlocal counter
          counter += 1
  
      JITFunction.cache_hook = inc_counter
      reset_tmp_dir()
      x = torch.empty(1, dtype=torch.int32, device="cuda")
      for i in range(10):
          kernel[(1,)](x, 1, BLOCK=1024)
      assert counter == 1
  
imports: import importlib.util
  import os
  import shutil
  import tempfile
  import pytest
  import torch
  import triton
  import triton.language
  from triton.runtime.jit import JITFunction
label_desc: Use image node_id 12 for calling a global function with example usage: test_reuse() without return types