code: def test_invalid_concat_args(self, concat_idx):
      with tf.compat.v1.variable_scope("mlp_concat_test"):
          _ = mlp(
              input_var=self._obs_input,
              output_dim=self._output_shape,
              hidden_sizes=(64, 32),
              concat_layer=concat_idx,
              hidden_nonlinearity=self.hidden_nonlinearity,
              name="mlp_no_input2",
          )
  
      obs_input_size = self._obs_input.shape[1]
  
      # concat_layer argument should be silently ignored.
      expected_units = [obs_input_size, 64, 32]
  
      actual_units = []
      with tf.compat.v1.variable_scope("mlp_concat_test", reuse=True):
          h1_w = tf.compat.v1.get_variable(
              "mlp_no_input2/hidden_0/kernel"
          )
          h2_w = tf.compat.v1.get_variable(
              "mlp_no_input2/hidden_1/kernel"
          )
          out_w = tf.compat.v1.get_variable(
              "mlp_no_input2/output/kernel"
          )
  
          actual_units.append(h1_w.shape[0])
          actual_units.append(h2_w.shape[0])
          actual_units.append(out_w.shape[0])
  
      assert np.array_equal(expected_units, actual_units)
  
file_path: garage/tests/garage/tf/models/test_mlp_concat.py
imports: import numpy
  import pytest
  import tensorflow
  from garage.tf.models.mlp import mlp
  from tests.fixtures import TfGraphTestCase
label_desc: Use image node_id 8 for calling the TestMLPConcat obj's underlying member method code with example usage: obj.test_invalid_concat_args(concat_idx) without return types