code: def test_elementwiselambda_func_with_args(self):
      def customize_func(noise, mean, std, foo=42):
          return mean + noise * tf.exp(std * 0.5) + foo
  
      class CustomizeModel(tl.models.Model):
          def __init__(self):
              super(CustomizeModel, self).__init__()
              self.dense1 = tl.layers.Dense(in_channels=1, n_units=5)
              self.dense2 = tl.layers.Dense(in_channels=1, n_units=5)
              self.dense3 = tl.layers.Dense(in_channels=1, n_units=5)
              self.lambdalayer = tl.layers.ElementwiseLambda(
                  customize_func, fn_args={"foo": 1024}
              )
  
          def forward(self, x, bar=None):
              noise = self.dense1(x)
              mean = self.dense2(x)
              std = self.dense3(x)
              if bar is None:
                  out = self.lambdalayer([noise, mean, std])
              else:
                  out = self.lambdalayer([noise, mean, std], foo=bar)
              return noise, mean, std, out
  
      model = CustomizeModel()
      print(model.lambdalayer)
      model.train()
  
      noise, mean, std, out = model(self.data_x)
      self.assertTrue(
          np.allclose(
              out.numpy(),
              customize_func(noise, mean, std, foo=1024).numpy(),
          )
      )
      noise, mean, std, out = model(self.data_x, bar=2048)
      self.assertTrue(
          np.allclose(
              out.numpy(),
              customize_func(noise, mean, std, foo=2048).numpy(),
          )
      )
  
file_path: TensorLayer/tests/layers/test_layers_lambda.py
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 7 for calling the Layer_Lambda_Test obj's underlying member method code with example usage: obj.test_elementwiselambda_func_with_args() and returns: unknown, noise,  mean,  std,  out