code: def _array_to_input_data(
      features_array: np.ndarray,
      target_array: np.ndarray,
      idx: Optional[np.ndarray] = None,
      task: Task = Task(TaskTypesEnum.classification),
      data_type: Optional[DataTypesEnum] = None,
  ) -> InputData:
      return np.asarray(features_array), np.asarray(target_array)
  
file_path: FEDOT/test/unit/data_operations/test_data_definition.py
imports: from datetime import datetime
  from typing import Union, Tuple, Optional
  import numpy
  import pandas
  import pytest
  import fedot.api.api_utils.data_definition
  from fedot.api.api_utils.data_definition import PandasStrategy, TupleStrategy, NumpyStrategy, StrategyDefineData
  from fedot.core.data.data import InputData
  from fedot.core.data.data import np_datetime_to_numeric
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 2 for calling a global function with example usage: _array_to_input_data(features_array, target_array, idx, task, data_type) and returns: np,  np