code: def test_tanh(dtype):
      x = tf.constant([-1.0, 0.0, 1.0], dtype=dtype)
      expected_result = tf.constant(
          [-0.23840582, 0.0, 0.238405825], dtype=dtype
      )
      test_utils.assert_allclose_according_to_type(
          tanhshrink(x), expected_result
      )
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.activations import tanhshrink
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_tanh(dtype) without return types