code: def test_cache(ray_start_regular):
      A = np.random.rand(1, 1000000)
      v = np.random.rand(1000000)
      A_id = ray.put(A)
      v_id = ray.put(v)
      a = time.time()
      for i in range(100):
          A.dot(v)
      b = time.time() - a
      c = time.time()
      for i in range(100):
          ray.get(A_id).dot(ray.get(v_id))
      d = time.time() - c
  
      if d > 1.5 * b:
          print(
              "WARNING: The caching test was too slow. d = {}, b = {}".format(
                  d, b
              )
          )
  
imports: import pytest
  import time
  import numpy
  import ray
label_desc: Use image node_id 2 for calling a global function with example usage: test_cache(ray_start_regular) without return types