code: def sum(input, axis=None, keep_dims=False):
      input = core._promote_bfloat16_to_float32(input)
      return core.reduce(input, axis, _sum_combine, keep_dims=keep_dims)
  
imports: from __future__ import annotations
  from ..runtime.jit import jit
  from .None import core, math
label_desc: Use image node_id 21 for calling a global function with example usage: sum(input, axis, keep_dims) and returns: core