code: def test_subgraph_exe4(sym, subgraph_backend, op_names):
      def get_executor(
          sym, subgraph_backend=None, op_names=None, original_exec=None
      ):
          arg_shapes, _, aux_shapes = sym.infer_shape()
          if subgraph_backend is None:
              arg_array = [
                  mx.nd.random.uniform(shape=shape)
                  for shape in arg_shapes
              ]
              aux_array = [
                  mx.nd.random.uniform(shape=shape)
                  for shape in aux_shapes
              ]
          else:
              arg_array = None
              aux_array = None
          exe = sym._bind(
              ctx=mx.current_context(),
              args=arg_array
              if subgraph_backend is None
              else original_exec.arg_arrays,
              aux_states=aux_array
              if subgraph_backend is None
              else original_exec.aux_arrays,
              grad_req="null",
          )
          exe.forward()
          return exe
  
      sym, _, _ = sym
      original_exec = get_executor(sym)
      check_call(
          _LIB.MXSetSubgraphPropertyOpNames(
              c_str(subgraph_backend),
              mx_uint(len(op_names)),
              c_str_array(op_names),
          )
      )
      partitioned_exec = get_executor(
          sym, subgraph_backend, op_names, original_exec
      )
      check_call(
          _LIB.MXRemoveSubgraphPropertyOpNames(c_str(subgraph_backend))
      )
      outputs1 = original_exec.outputs
      outputs2 = partitioned_exec.outputs
      assert len(outputs1) == len(outputs2)
      for i in range(len(outputs1)):
          assert_almost_equal(
              (outputs1[i] - outputs2[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 13 for calling a global function with example usage: test_subgraph_exe4(sym, subgraph_backend, op_names) and returns: exe