code: def logsumexp(x, axis):
      xp = backend.get_array_module(x)
      m = x.max(axis=axis, keepdims=True)
      y = x - m
      xp.exp(y, out=y)
      s = y.sum(axis=axis, keepdims=True)
      xp.log(s, out=s)
      m += s
      return m
  
imports: import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  import chainer.functions
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 1 for calling a global function with example usage: logsumexp(x, axis) and returns: m