class_docstr: Implements the reduce logic.
  It must have a parameter *axes*.
class_docstr_tok: ["Implements","the","reduce","logic",".","It","must","have","a","parameter","*","axes","*","."]
docstr: Special case reduction where the output value is a constant.
docstr_tok: ["Special","case","reduction","where","the","output","value","is","a","constant","."]
code: def reduce_constant(self, data, const_val, axes, keepdims):
      """Special case reduction where the output value is a constant."""
      output_shape = self.output_shape(data, axes, keepdims)
      return (np.full(output_shape, const_val, dtype=data.dtype),)
  
imports: from typing import Any, Dict
  import numpy
  from onnx.onnx_pb import NodeProto
  from onnx.reference.op_run import OpRun, RuntimeTypeError
label_desc: Use image node_id 5 for calling the OpRunReduceNumpy obj's underlying member method code with example usage: obj.reduce_constant(data, const_val, axes, keepdims) and returns: np