class_docstr: This class contains test cases for the functions in tflearn/activations.py
code: def test_apply_activation(self):
      lrelu_02 = lambda x: tflearn.leaky_relu(x, alpha=0.2)
      x = tf.constant(-0.25, tf.float32)
  
      with tf.Session() as sess:
          # Case 1: 'linear'
          self.assertEqual(
              sess.run(tflearn.activation(x, "linear")), -0.25
          )
  
          # Case 2: 'relu'
          self.assertEqual(sess.run(tflearn.activation(x, "relu")), 0)
  
          # Case 3: 'leaky_relu'
          self.assertAlmostEqual(
              sess.run(tflearn.activation(x, "leaky_relu")),
              -0.025,
              places=TestActivations.PLACES,
          )
  
          # Case 4: 'tanh'
          self.assertAlmostEqual(
              sess.run(tflearn.activation(x, "tanh")),
              -0.2449,
              places=TestActivations.PLACES,
          )
  
          # Case 5: lrelu_02 (callable)
          self.assertAlmostEqual(
              sess.run(tflearn.activation(x, lrelu_02)),
              -0.05,
              places=TestActivations.PLACES,
          )
  
file_path: tflearn/tests/test.py
imports: import tensorflow.compat.v1
  import tflearn
  import unittest
label_desc: Use image node_id 4 for calling the TestActivations obj's underlying member method code with example usage: obj.test_apply_activation() without return types