code: def test_inner_concatenate_data_should_merge_1d_with_3d():
      # Given
      data_inputs_3d, expected_outputs_3d = _create_data_source(
          SHAPE_3D
      )
      data_inputs_1d, expected_outputs_1d = _create_data_source(
          SHAPE_1D
      )
      data_container_1d = DACT(
          data_inputs=data_inputs_1d,
          expected_outputs=expected_outputs_1d,
      )
      data_container = DACT(
          data_inputs=data_inputs_3d,
          expected_outputs=expected_outputs_3d,
      ).add_sub_data_container("1d", data_container_1d)
  
      # When
      p = Pipeline(
          [
              InnerConcatenateDataContainer(
                  sub_data_container_names=["1d"]
              )
          ]
      )
  
      data_container = p.handle_transform(data_container, CX())
  
      # Then
      broadcasted_data_inputs_1d = np.broadcast_to(
          np.expand_dims(data_container_1d.data_inputs, axis=-1),
          shape=(SHAPE_3D[0], SHAPE_3D[1]),
      )
      broadcasted_expected_outputs_1d = np.broadcast_to(
          np.expand_dims(data_container_1d.expected_outputs, axis=-1),
          shape=(SHAPE_3D[0], SHAPE_3D[1]),
      )
  
      assert np.array_equal(
          data_container.data_inputs[..., -1],
          broadcasted_data_inputs_1d,
      )
      assert np.array_equal(
          data_container.expected_outputs[..., -1],
          broadcasted_expected_outputs_1d,
      )
  
      assert data_container.data_inputs.shape == (
          SHAPE_3D[0],
          SHAPE_3D[1],
          SHAPE_3D[2] + 1,
      )
      assert data_container.expected_outputs.shape == (
          SHAPE_3D[0],
          SHAPE_3D[1],
          SHAPE_3D[2] + 1,
      )
  
file_path: Neuraxle/testing_neuraxle/steps/test_concatenate_data_container.py
imports: import numpy
  from neuraxle.base import ExecutionContext
  from neuraxle.data_container import DataContainer
  from neuraxle.pipeline import Pipeline
  from neuraxle.steps.data import InnerConcatenateDataContainer, ZipBatchDataContainer
label_desc: Use image node_id 3 for calling a global function with example usage: test_inner_concatenate_data_should_merge_1d_with_3d() without return types