code: def test_net_symbol_save_load():
      class Case1(gluon.HybridBlock):
          def __init__(self):
              super(Case1, self).__init__()
              self.layer = gluon.nn.Dense(64, flatten=False)
  
          def forward(self, x, y):
              x = mx.np.split(x, 1)
              x = x[0]
              return self.layer(x[:, -1, :] + y[:, -1, :])
  
      check_gluon_save_load(
          Case1,
          [
              mx.np.random.normal(0, 1, (10, 5, 8, 6)),
              mx.np.random.normal(0, 1, (10, 5, 8, 6)),
          ],
      )
  
      class Case2(gluon.HybridBlock):
          def __init__(self):
              super(Case2, self).__init__()
              self.layer1 = gluon.nn.Dense(64, flatten=False)
              self.layer2 = gluon.nn.Dense(64, flatten=False)
  
          def forward(self, x, y):
              x = mx.np.split(x, 1)
              x = x[0]
              return self.layer1(x[:, -1, :]) + self.layer2(y[:, -1, :])
  
      check_gluon_save_load(
          Case2,
          [
              mx.np.random.normal(0, 1, (10, 5, 8)),
              mx.np.random.normal(0, 1, (10, 5, 8)),
          ],
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  import os
  from uuid import uuid4
  import numpy
  import mxnet
  from mxnet import gluon, autograd, np, npx
  from mxnet.test_utils import use_np, assert_almost_equal, check_gluon_hybridize_consistency, assert_allclose
  from mxnet.gluon import nn
  from mxnet.base import MXNetError
  import random
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_net_symbol_save_load() and returns: self, unknown