code: def test_multi_modal_data():
      """
      Checking basic functionality of MultiModalData class.
      """
      num_samples = 5
      target = np.asarray([0, 0, 1, 0, 1])
      image_data = InputData(
          idx=range(num_samples),
          features=None,  # in test the real data is not passed
          target=target,
          data_type=DataTypesEnum.text,
          task=Task(TaskTypesEnum.classification),
      )
      table_data = InputData(
          idx=range(num_samples),
          features=None,  # in test the real data is not passed
          target=target,
          data_type=DataTypesEnum.table,
          task=Task(TaskTypesEnum.classification),
      )
  
      multi_modal = MultiModalData(
          {
              "data_source_img": image_data,
              "data_source_table": table_data,
          }
      )
  
      assert multi_modal.task.task_type == TaskTypesEnum.classification
      assert len(multi_modal.idx) == 5
      assert multi_modal.num_classes == 2
      assert np.array_equal(multi_modal.target, target)
  
      # check setter
      new_target = np.asarray([1, 1, 1, 1, 1])
      multi_modal.target = new_target
      assert np.array_equal(multi_modal.target, new_target)
  
file_path: FEDOT/test/unit/data/test_multimodal_data.py
imports: import numpy
  import pandas
  import pytest
  from pathlib import Path
  from fedot import Fedot
  from fedot.core.data.data import InputData
  from fedot.core.data.multi_modal import MultiModalData
  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 1 for calling a global function with example usage: test_multi_modal_data() without return types