code: def test_const():
      class Foo(HybridBlock):
          def __init__(self):
              super().__init__()
              self.weight = Constant(np.ones((10, 10)))
  
          def forward(self, x, weight):
              return x, weight.astype(np.float32)
  
      foo = Foo()
      foo.hybridize()
      foo.initialize()
  
file_path: gluon-nlp/tests/test_gluon_block.py
imports: import pytest
  import mxnet
  from mxnet import nd, np, npx
  from mxnet.test_utils import assert_allclose
  from mxnet.gluon import HybridBlock, Constant
  from mxnet.gluon.data import DataLoader
  import itertools
label_desc: Use image node_id 1 for calling a global function with example usage: test_const() and returns: x,  weight