code: def test_gelu_10(self):
      x = tf.constant([-100, -1.0, -0.1, 0, 0.1, 1.0, 100.0])
      gelu = get_tf_activation("gelu")
      gelu10 = get_tf_activation("gelu_10")
  
      y_gelu = gelu(x)
      y_gelu_10 = gelu10(x)
  
      clipped_mask = tf.where(y_gelu_10 < 10.0, 1.0, 0.0)
  
      self.assertEqual(
          tf.math.reduce_max(y_gelu_10).numpy().item(), 10.0
      )
      self.assertTrue(
          np.allclose(y_gelu * clipped_mask, y_gelu_10 * clipped_mask)
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/tests/utils/test_activations_tf.py
imports: import unittest
  import numpy
  from transformers import is_tf_available
  from transformers.testing_utils import require_tf
label_desc: Use image node_id 1 for calling the TestTFActivations obj's underlying member method code with example usage: obj.test_gelu_10() without return types