code: def test_subgraph_exe1(sym, subgraph_backend, op_names):
      """Use the partitioned sym to _simple_bind an executor and compare the outputs
      with those of the original executor"""
      sym, _, _ = sym
      out = SymbolHandle()
      check_call(
          _LIB.MXBuildSubgraphByOpNames(
              sym.handle,
              c_str(subgraph_backend),
              mx_uint(len(op_names)),
              c_str_array(op_names),
              ctypes.byref(out),
          )
      )
  
      partitioned_sym = Symbol(out)
      assert partitioned_sym.list_inputs() == sym.list_inputs()
      assert partitioned_sym.list_arguments() == sym.list_arguments()
      assert (
          partitioned_sym.list_auxiliary_states()
          == sym.list_auxiliary_states()
      )
      exe = sym._simple_bind(ctx=mx.current_context(), grad_req="null")
      partitioned_exe = partitioned_sym._simple_bind(
          ctx=mx.current_context(), grad_req="null"
      )
      input_names = sym.list_inputs()
      for name in input_names:
          if name in exe.arg_dict:
              exe.arg_dict[name][:] = mx.nd.random.uniform(
                  shape=exe.arg_dict[name].shape
              )
              partitioned_exe.arg_dict[name][:] = exe.arg_dict[name]
          else:
              assert name in exe.aux_dict
              exe.aux_dict[name][:] = mx.nd.random.uniform(
                  shape=exe.aux_dict[name].shape
              )
              partitioned_exe.aux_dict[name][:] = exe.aux_dict[name]
      exe.forward()
      partitioned_exe.forward()
      assert len(exe.outputs) == len(partitioned_exe.outputs)
      for i in range(len(exe.outputs)):
          assert_almost_equal(
              (exe.outputs[i] - partitioned_exe.outputs[i])
              .abs()
              .sum()
              .asnumpy(),
              onp.zeros(shape=(1,)),
          )
  
imports: import os
  import sys
  import ctypes
  import mxnet
  from mxnet.base import SymbolHandle, check_call, _LIB, mx_uint, c_str_array, c_str, mx_real_t
  from mxnet.symbol import Symbol
  import numpy
  from mxnet.test_utils import assert_almost_equal, environment
  from mxnet import gluon
  from mxnet.gluon import nn
  from mxnet import nd, npx
  import pytest
  import tempfile
label_desc: Use image node_id 10 for calling a global function with example usage: test_subgraph_exe1(sym, subgraph_backend, op_names) without return types