code: def _alt_reduce_logsumexp(input_tensor, axis=None, keepdims=False):
      """Alternative to SP logsumexp."""
      m = _max_mask_non_finite(input_tensor, axis=axis, keepdims=True)
      y = input_tensor - m
      y = np.exp(y)
      if not keepdims and y.size > 0:
          m = np.squeeze(m, axis=_astuple(axis))
      return m + np.log(
          np.sum(y, axis=_astuple(axis), keepdims=keepdims)
      )
  
imports: import collections
  import functools
  import numpy
  import numpy
  from tensorflow_probability.python.internal.backend.numpy import _utils
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import _reverse
  from tensorflow_probability.python.internal.backend.numpy.numpy_array import one_hot
  from tensorflow_probability.python.internal.backend.numpy.ops import _convert_to_tensor
label_desc: Use image node_id 20 for calling a global function with example usage: _alt_reduce_logsumexp(input_tensor, axis, keepdims) and returns: unknown