code: def test_get_activation(self):
      get_tf_activation("gelu")
      get_tf_activation("gelu_10")
      get_tf_activation("gelu_fast")
      get_tf_activation("gelu_new")
      get_tf_activation("glu")
      get_tf_activation("mish")
      get_tf_activation("quick_gelu")
      get_tf_activation("relu")
      get_tf_activation("sigmoid")
      get_tf_activation("silu")
      get_tf_activation("swish")
      get_tf_activation("tanh")
      with self.assertRaises(KeyError):
          get_tf_activation("bogus")
      with self.assertRaises(KeyError):
          get_tf_activation(None)
  
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 2 for calling the TestTFActivations obj's underlying member method code with example usage: obj.test_get_activation() without return types