class_docstr: Dictionary with InputData as values and primary node names as keys 
class_docstr_tok: ["Dictionary","with","InputData","as","values","and","primary","node","names","as","keys"]
code: def task(self):
      for input_data in self.values():
          if input_data.supplementary_data.is_main_target:
              return input_data.task
  
imports: from __future__ import annotations
  from functools import partial
  from typing import List, Optional, Union, Dict
  import numpy
  from fedot.core.data.data import InputData
  from fedot.core.data.data import process_target_and_features, array_to_input_data, get_df_from_csv, PathType, POSSIBLE_TABULAR_IDX_KEYWORDS, POSSIBLE_TS_IDX_KEYWORDS
  from fedot.core.data.data_detection import TextDataDetector, TimeSeriesDataDetector
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 3 for calling the MultiModalData obj's underlying member method code with example usage: obj.task() and returns: input_data