code: def test_prefer_cached_array():
      nn.reset_array_preference()
      nn.prefer_cached_array(True)
      ac2 = nn.array_classes()
      check_cached_array_preferred(ac2)
  
      try:
          from nnabla_ext import cuda
      except:
          cuda = None
      if cuda is not None:
          ac2 = cuda.array_classes()
          check_cached_array_preferred(ac2)
  
      nn.prefer_cached_array(False)
      ac2 = nn.array_classes()
      check_cached_array_preferred(ac2, False)
      if cuda is not None:
          ac2 = cuda.array_classes()
          check_cached_array_preferred(ac2, False)
  
      nn.prefer_cached_array(True)
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_prefer_cached_array() without return types