code: def _testSoftplus(self, np_features, use_gpu=False):
      np_softplus = self._npSoftplus(np_features)
      with self.cached_session(use_gpu=use_gpu):
          softplus = nn_ops.softplus(np_features)
          tf_softplus = self.evaluate(softplus)
      self.assertAllCloseAccordingToType(
          np_softplus,
          tf_softplus,
          half_rtol=5e-3,
          half_atol=5e-3,
          bfloat16_rtol=5e-2,
          bfloat16_atol=5e-2,
      )
      self.assertTrue(np.all(tf_softplus > 0))
      self.assertShapeEqual(np_softplus, softplus)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/nn_ops/softplus_op_test.py
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import nn_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the SoftplusTest obj's underlying member method code with example usage: obj._testSoftplus(np_features, use_gpu) without return types