code: def _get_intermediate_dtype(dtype):
      # Returns the dtype for intermediate calculation.
      # For float16 input, float32 is used.
      # Otherwise the same dtype as the parameter is used.
      if dtype == numpy.float16:
          return numpy.float32
      return dtype
  
file_path: chainer/chainer/functions/loss/mean_absolute_error.py
imports: import numpy
  import chainer
  from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: _get_intermediate_dtype(dtype) and returns: dtype, numpy