code: def _compute_sum(itype, otype, ndim, reduce1st_dim, req):
      axes = ([reduce1st_dim, 1 - reduce1st_dim] * ndim)[:ndim]
      a = tvm.te.placeholder(
          [tvm.te.size_var() for _ in range(ndim)],
          name="a",
          dtype=itype,
      )
      reduce_output = reduce_axes(a, axes, tvm.tir.sum, otype)
      output_placeholder, final_output = assign_by_req(
          reduce_output, req
      )
      s = tvm.te.create_schedule(final_output.op)
      return (
          s,
          a,
          output_placeholder,
          final_output,
          [reduce_output, final_output],
      )
  
imports: import tvm
  from ..None import defop
  from ..utils import reduce_axes, assign_by_req
label_desc: Use image node_id 1 for calling a global function with example usage: _compute_sum(itype, otype, ndim, reduce1st_dim, req) and returns: s,  a,  output_placeholder,  final_output,  list