code: def _reduction_dtype(x_dtype):
      # Returns the dtype for accumulation and output of reduction.
      # For float16 input, float32 is used.
      # Otherwise the same dtype as the input is used.
      if x_dtype == numpy.float16:
          return numpy.float32
      return x_dtype
  
imports: import numpy
  import six
  import chainer
  from chainer import backend
  from chainer.backends import cuda
  from chainer import function_node
  from chainer.functions.activation import log_softmax
  from chainer.utils import type_check
  from chainer import variable
  import chainerx
label_desc: Use image node_id 5 for calling a global function with example usage: _reduction_dtype(x_dtype) and returns: x_dtype, numpy