code: def layer_test_esn(dtype):
      inp = np.asanyarray(
          [
              [[1.0, 1.0, 1.0, 1.0]],
              [[2.0, 2.0, 2.0, 2.0]],
              [[3.0, 3.0, 3.0, 3.0]],
          ]
      ).astype(dtype)
      out = np.asarray(
          [[2.5, 2.5, 2.5], [4.5, 4.5, 4.5], [6.5, 6.5, 6.5]]
      ).astype(dtype)
  
      const_initializer = tf.constant_initializer(0.5)
      kwargs = {
          "units": 3,
          "connectivity": 1,
          "leaky": 1,
          "spectral_radius": 0.9,
          "use_norm2": True,
          "use_bias": True,
          "activation": None,
          "kernel_initializer": const_initializer,
          "recurrent_initializer": const_initializer,
          "bias_initializer": const_initializer,
          "dtype": dtype,
      }
  
      test_utils.layer_test(
          ESN, kwargs=kwargs, input_data=inp, expected_output=out
      )
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow_addons.layers.esn import ESN
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: layer_test_esn(dtype) without return types