code: def test_cached_op_init():
      def check_init(static_alloc, static_shape):
          out = mx.sym.zeros((3, 3))
          flags = [
              ("static_alloc", static_alloc),
              ("static_shape", static_shape),
          ]
          exe = mx.ndarray.CachedOp(out, flags)
          z = exe(None, default_device=mx.cpu())
          assert np.all(z.asnumpy() == 0)
  
      check_init(False, False)
      check_init(True, False)
      check_init(True, True)
  
file_path: mxnet/tests/python/unittest/test_executor.py
imports: import numpy
  import mxnet
  from mxnet.test_utils import assert_almost_equal, environment
label_desc: Use image node_id 5 for calling a global function with example usage: test_cached_op_init() without return types