code: def test_data_merge_texts(output_texts):
      first_output = output_texts[0]
  
      def get_num_columns(data: np.array):
          return data.shape[1] if data.ndim > 1 else 1
  
      if len(output_texts[0].features.shape) > 2:
          with pytest.raises(ValueError, match="not supported"):
              DataMerger.get(output_texts).merge()
      else:
          merged_data = DataMerger.get(output_texts).merge()
  
          assert np.equal(merged_data.idx, first_output.idx).all()
          expected_num_columns = sum(
              get_num_columns(output.predict) for output in output_texts
          )
          assert merged_data.features.shape[0] == len(
              first_output.predict
          )
          assert get_num_columns(merged_data.features) == 1
          assert (
              len(merged_data.features[0][0])
              >= len(output_texts[0].features[0][0])
              * expected_num_columns
          )
  
file_path: FEDOT/test/unit/data/test_data_merge_text.py
imports: import numpy
  import pandas
  import pytest
  from fedot.core.data.data import OutputData
  from fedot.core.data.merge.data_merger import DataMerger
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.core.utils import fedot_project_root
label_desc: Use image node_id 4 for calling a global function with example usage: test_data_merge_texts(output_texts) and returns: unknown