code: def check_fp16_overflow(self, xp):
      x0 = chainer.Variable(
          xp.full(shape=(64, 1, 16, 16), fill_value=2, dtype=xp.float16)
      )
      x1 = chainer.Variable(
          xp.full(
              shape=(64, 1, 16, 16), fill_value=-2, dtype=xp.float16
          )
      )
      loss = functions.mean_absolute_error(x0, x1)
      self.assertFalse(xp.isinf(loss.array))
  
imports: import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import functions
  from chainer import testing
  from chainer import utils
  from chainer.testing import attr
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling the TestMeanAbsoluteErrorFP16Overflow obj's underlying member method code with example usage: obj.check_fp16_overflow(xp) without return types