code: def test_scalar():
      class Foo(HybridBlock):
          def forward(self, x):
              return x * x * 2
  
      foo = Foo()
      foo.hybridize()
      foo.initialize()
      out = foo(mx.np.array(1.0))
      assert_allclose(out.asnumpy(), np.array(2.0))
  
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 2 for calling a global function with example usage: test_scalar() and returns: unknown