code: def test_dynamic_shape_multiple_hybridize():
      # test multiple hybridize calls for the same block
      class _TestBlock(gluon.HybridBlock):
          def __init__(self):
              super(_TestBlock, self).__init__()
  
          def forward(self, data, index):
              return mx.np.sum(_npi.boolean_mask(data, index)) - 5
  
      block = _TestBlock()
      data = mx.np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
      index = mx.np.array([0, 1, 0])
      result_nd = np.array([10])
  
      block.hybridize()
      result = block(data, index)
      assert_almost_equal(result.asnumpy(), result_nd)
  
      block.hybridize(static_alloc=True)
      result = block(data, index)
      assert_almost_equal(result.asnumpy(), result_nd)
  
      block.hybridize(static_alloc=True, static_shape=True)
      result = block(data, index)
      assert_almost_equal(result.asnumpy(), result_nd)
  
file_path: mxnet/tests/python/unittest/test_dynamic_shape.py
imports: import numpy
  import mxnet
  import mxnet.ndarray.numpy._internal
  from mxnet import gluon
  from numpy.testing import assert_allclose, assert_array_equal
  from mxnet.test_utils import *
  from mxnet.base import _as_list
  from mxnet.attribute import AttrScope
label_desc: Use image node_id 3 for calling a global function with example usage: test_dynamic_shape_multiple_hybridize() and returns: unknown