code: def test_np_hybrid_block_multiple_outputs():
      @use_np
      class TestAllNumpyOutputs(HybridBlock):
          def forward(self, x, *args, **kwargs):
              return np.add(x, x), np.multiply(x, x)
  
      data_np = np.ones((2, 3))
      block, expected_out_type = TestAllNumpyOutputs, np.ndarray
      net = block()
      for hybridize in [True, False]:
          if hybridize:
              net.hybridize(active=hybridize)
          out1, out2 = net(data_np)
          assert type(out1) is expected_out_type
          assert type(out2) is expected_out_type
  
      @use_np
      class TestMixedTypeOutputsFailure(HybridBlock):
          def forward(self, x, *args, **kwargs):
              return x.as_nd_ndarray() + x.as_nd_ndarray(), np.multiply(
                  x, x
              )
  
      net = TestMixedTypeOutputsFailure()
      assert_exception(net, TypeError, data_np)
      net.hybridize()
      assert_exception(net, TypeError, data_np)
  
imports: from __future__ import absolute_import
  from __future__ import division
  import itertools
  import os
  import pytest
  import operator
  import numpy
  import mxnet
  from mxnet import np, npx, autograd
  from mxnet.gluon import HybridBlock
  from mxnet.test_utils import same, assert_almost_equal, rand_shape_nd, rand_ndarray, use_np
  from common import retry, TemporaryDirectory, xfail_when_nonstandard_decimal_separator
  from mxnet.test_utils import verify_generator, gen_buckets_probs_with_ppf, assert_exception, is_op_runnable, collapse_sum_like
  from mxnet.ndarray.ndarray import py_slice
  from mxnet.base import integer_types
label_desc: Use image node_id 7 for calling a global function with example usage: test_np_hybrid_block_multiple_outputs() and returns: np,  np, unknown,  np