code: def data_strategy_selector(
      features: FeaturesType,
      target: Optional[str] = None,
      task: Task = None,
      is_predict: bool = None,
  ) -> Union[InputData, MultiModalData]:
      strategy = [
          strategy
          for cls, strategy in _strategy_dispatch.items()
          if isinstance(features, cls)
      ][0]
  
      data = DataDefiner(strategy())
      return data.define_data(features, task, target, is_predict)
  
imports: from abc import ABC, abstractmethod
  from copy import deepcopy
  from os import PathLike
  from typing import Union, Optional
  import numpy
  import pandas
  from fedot.core.data.data import InputData, array_to_input_data
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 1 for calling a global function with example usage: data_strategy_selector(features, target, task, is_predict) and returns: data