code: def testNoInts(self):
      with self.cached_session():
          with self.assertRaisesRegex(
              TypeError,
              "'features' has DataType int32 not in list of allowed values",
          ):
              nn_ops.softplus(constant_op.constant(42)).eval()
  
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 7 for calling the SoftplusTest obj's underlying member method code with example usage: obj.testNoInts() without return types