code: def test_gelu(dtype):
      x = tf.constant([-2.0, -1.0, 0.0, 1.0, 2.0], dtype=dtype)
      expected_result = tf.constant(
          [-0.04540229, -0.158808, 0.0, 0.841192, 1.9545977],
          dtype=dtype,
      )
      test_utils.assert_allclose_according_to_type(
          gelu(x), expected_result
      )
  
      expected_result = tf.constant(
          [-0.04550028, -0.15865526, 0.0, 0.8413447, 1.9544997],
          dtype=dtype,
      )
      test_utils.assert_allclose_according_to_type(
          gelu(x, False), expected_result
      )
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.activations import gelu
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_gelu(dtype) without return types