code: def test_elementwise(self):
      class CustomModel(tl.models.Model):
          def __init__(self):
              super(CustomModel, self).__init__()
              self.dense1 = tl.layers.Dense(
                  in_channels=20,
                  n_units=10,
                  act=tf.nn.relu,
                  name="relu1_1",
              )
              self.dense2 = tl.layers.Dense(
                  in_channels=20,
                  n_units=10,
                  act=tf.nn.relu,
                  name="relu2_1",
              )
              self.element = tl.layers.Elementwise(
                  combine_fn=tf.minimum, name="minimum", act=tf.identity
              )
  
          def forward(self, inputs):
              d1 = self.dense1(inputs)
              d2 = self.dense2(inputs)
              outputs = self.element([d1, d2])
              return outputs, d1, d2
  
      model = CustomModel()
      model.train()
      inputs = tf.convert_to_tensor(
          np.random.random([4, 20]).astype(np.float32)
      )
      outputs, d1, d2 = model(inputs)
      print(model)
  
      min = tf.minimum(d1, d2)
      self.assertEqual(outputs.get_shape().as_list(), [4, 10])
      self.assertTrue(np.array_equal(min.numpy(), outputs.numpy()))
  
file_path: TensorLayer/tests/layers/test_layers_merge.py
imports: import os
  import unittest
  import numpy
  import tensorflow
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 4 for calling the Layer_Merge_Test obj's underlying member method code with example usage: obj.test_elementwise() and returns: outputs,  d1,  d2