code: def _normalize(x, axis):
      """Normalize, preserving floating point precision of x."""
      x_sum = x.sum(axis=axis, keepdims=True)
      if x.dtype.kind == "f":
          x /= x_sum
      else:
          x = x / x_sum
      return x
  
imports: import math
  import cupy
  from cupyx.scipy import special
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize(x, axis) and returns: x