code: def test_context_dep_memoize(ctx_factory):
      context = ctx_factory()
  
      from pyopencl.tools import context_dependent_memoize
  
      counter = [0]
  
      @context_dependent_memoize
      def do_something(ctx):
          counter[0] += 1
  
      do_something(context)
      do_something(context)
  
      assert counter[0] == 1
  
imports: import numpy
  import numpy.linalg
  import pytest
  import pyopencl
  import pyopencl.array
  import pyopencl.cltypes
  import pyopencl.clrandom
  from pyopencl.tools import pytest_generate_tests_for_pyopencl, ImmediateAllocator, DeferredAllocator
  from pyopencl.characterize import get_pocl_version
label_desc: Use image node_id 19 for calling a global function with example usage: test_context_dep_memoize(ctx_factory) without return types