code: def test_slice_reshape_before_conv():
      class Net(gluon.HybridBlock):
          """
          test Net
          """
  
          def __init__(self, **kwargs):
              super(Net, self).__init__(**kwargs)
              self.conv0 = nn.Conv2D(4, (3, 3))
              self.conv1 = nn.Conv2D(4, (3, 3))
  
          def forward(self, x, *args, **kwargs):
              x_slice = mx.npx.slice(
                  x, begin=(0, 0, 0, 0), end=(2, 4, 8, 9)
              )
              y = self.conv0(x_slice)
              y_reshape = y.reshape((2, 4, 14, 3))
              out = self.conv1(y_reshape)
              return out
  
      x = mx.np.random.uniform(size=(2, 10, 10, 10))
      x.attach_grad()
      net = Net()
      net.initialize()
      with mx.autograd.record():
          out1 = net(x)
      out1.backward()
      dx1 = x.grad
      net.hybridize()
      with mx.autograd.record():
          out2 = net(x)
      out2.backward()
      assert_almost_equal(dx1, x.grad, rtol=1e-5, atol=1e-6)
      assert_almost_equal(out1, out2, rtol=1e-5, atol=1e-6)
  
imports: import sys
  import os
  import numpy
  import mxnet
  import pytest
  from mxnet.test_utils import rand_ndarray, assert_almost_equal
  from mxnet import gluon, context, use_np
  from mxnet.gluon import nn
  from mxnet.test_utils import *
  import itertools
label_desc: Use image node_id 6 for calling a global function with example usage: test_slice_reshape_before_conv() and returns: out