code: def cumsum(input, axis=0):
      # todo rename this to a generic function name
      input = core._promote_bfloat16_to_float32(input)
      return core.associative_scan(input, axis, _sum_combine)
  
imports: from __future__ import annotations
  from ..runtime.jit import jit
  from .None import core, math
label_desc: Use image node_id 24 for calling a global function with example usage: cumsum(input, axis) and returns: core