code: def testValuesWithBeta(self):
      np_values = np.array(
          [np.linspace(-7.0, 0.0, 100), np.linspace(0.0, 7.0, 100)],
          dtype=np.float32,
      )
      tf_values = _get_weak_tensor(np_values)
      actual_tf_outputs = nn_impl.swish(tf_values, beta=0.5)
      self.assertIsInstance(actual_tf_outputs, weak_tensor.WeakTensor)
      expected_tf_outputs = tf_values * math_ops.sigmoid(
          0.5 * tf_values
      )
  
      actual_outputs, expected_outputs = self.evaluate(
          [actual_tf_outputs, expected_tf_outputs]
      )
  
      self.assertAllClose(actual_outputs, expected_outputs)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import weak_tensor
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import weak_tensor_ops
  from tensorflow.python.ops import weak_tensor_test_util
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the SwishTest obj's underlying member method code with example usage: obj.testValuesWithBeta() without return types