code: def xor_sum(
      input, axis=None, keep_dims=False, _builder=None, _generator=None
  ):
      scalar_ty = input.type.scalar
      if not scalar_ty.is_int():
          raise ValueError("xor_sum only supported for integers")
  
      input = core._promote_bfloat16_to_float32(
          input, _builder=_builder
      )
      return core.reduce(
          input,
          axis,
          _xor_combine,
          keep_dims=keep_dims,
          _builder=_builder,
          _generator=_generator,
      )
  
imports: from __future__ import annotations
  from ..runtime.jit import jit
  from .None import core, math
label_desc: Use image node_id 23 for calling a global function with example usage: xor_sum(input, axis, keep_dims, _builder, _generator) and returns: core