code: def _testOverflow(self, use_gpu=False):
      if use_gpu:
          type = np.float32  # pylint: disable=redefined-builtin
      else:
          type = np.float64  # pylint: disable=redefined-builtin
      max = np.finfo(type).max  # pylint: disable=redefined-builtin
      features = np.array(
          [[1.0, 1.0, 1.0, 1.0], [max, 1.0, 2.0, 3.0]]
      ).astype(type)
      with self.cached_session(use_gpu=use_gpu):
          tf_log_softmax = nn_ops.log_softmax(features)
          out = self.evaluate(tf_log_softmax)
      self.assertAllClose(
          np.array(
              [
                  [-1.386294, -1.386294, -1.386294, -1.386294],
                  [0, -max, -max, -max],
              ]
          ),
          out,
          rtol=1.0e-5,
          atol=1.0e-5,
      )
  
imports: import unittest
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 5 for calling the SoftmaxTest obj's underlying member method code with example usage: obj._testOverflow(use_gpu) without return types