class_docstr: Test cases for binary operators.
code: def testNextAfter(self):
      for dtype in self.numeric_types:
          if dtype in [np.float32, np.float64]:
              x = np.array(
                  [
                      -0.0,
                      0.0,
                      -0.0,
                      +0.0,
                      np.inf,
                      np.inf,
                      -np.inf,
                      -np.inf,
                      2.0,
                      2.0,
                      1.0,
                  ],
                  dtype=dtype,
              )
              y = np.array(
                  [
                      -0.0,
                      0.0,
                      +0.0,
                      -0.0,
                      1.0,
                      -1.0,
                      1.0,
                      -1.0,
                      2.0,
                      1.0,
                      2.0,
                  ],
                  dtype=dtype,
              )
              expected = np.nextafter(x, y)
  
              # We use assertAllEqual to expose any bugs hidden by relative or
              # absolute error tolerances.
              def NextAfterEqualityTest(result, expected, rtol, atol):
                  del rtol
                  del atol
                  return self.assertAllEqual(result, expected)
  
              self._testBinary(
                  math_ops.nextafter,
                  x,
                  y,
                  expected=expected,
                  equality_test=NextAfterEqualityTest,
              )
  
imports: import itertools
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
label_desc: Use image node_id 10 for calling the BinaryOpsTest obj's underlying member method code with example usage: obj.testNextAfter() and returns: self