code: def test_affine(dtype):
      x = np.array([[-2.5, 0.0, 0.3]]).astype(dtype)
      val = np.array([[-1.5, 1.0, 1.3]]).astype(dtype)
      test_utils.layer_test(
          TLU,
          kwargs={
              "affine": True,
              "dtype": dtype,
              "alpha_initializer": "ones",
              "tau_initializer": "ones",
          },
          input_data=x,
          expected_output=val,
      )
  
file_path: addons/tensorflow_addons/layers/tests/tlu_test.py
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.layers.tlu import TLU
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_affine(dtype) without return types