code: def test_dc_hybridblock():
      class MyBlock(mx.gluon.HybridBlock):
          def __init__(self):
              super().__init__()
              self.dense = mx.gluon.nn.Dense(units=10, in_units=10)
              self.weight = mx.gluon.Parameter("weight", shape=(10,))
  
          def forward(self, x):
              assert x.shape[1] == 10  # due to in_units=10 above
              return self.dense(x) + self.weight.data(x.context)
  
      if mx.device.current_device() == mx.cpu(0):  # CPU tests
          devices = [mx.cpu(0), mx.cpu(1)]
      else:  # Use default device, GPU tests
          devices = [mx.device.current_device()]
      for device in devices:
          net = MyBlock()
          net.initialize(device=devices)
          _assert_dc_gluon(
              _dc_gluon_simple_setup, net, numpy=True, device=device
          )
  
imports: import functools
  import operator
  import numpy
  import mxnet
  import mxnet._deferred_compute
  from mxnet.base import MXNetError
  from mxnet.util import TemporaryDirectory
  import pytest
label_desc: Use image node_id 31 for calling a global function with example usage: test_dc_hybridblock() and returns: unknown