code: def test_code_cache_different_cvars_miss():
      # Compilation of a distinct function with the same types and code as an
      # existing entry but different closure variables should create an
      # additional cache entry
  
      def gen_closure(y):
          return lambda x: x + y
  
      cudautils.compile_udf(gen_closure(1), (types.float32,))
      assert_cache_size(1)
  
      cudautils.compile_udf(gen_closure(2), (types.float32,))
      assert_cache_size(2)
  
file_path: cudf/python/cudf/cudf/tests/test_compile_udf.py
imports: from numba import types
  from cudf.utils import cudautils
label_desc: Use image node_id 6 for calling a global function with example usage: test_code_cache_different_cvars_miss() and returns: function