code: def test_data_subset_correct(data_setup):
      subset_size = 50
      subset = data_setup.subset_range(0, subset_size - 1)
  
      assert len(subset.idx) == subset_size
      assert len(subset.features) == subset_size
      assert len(subset.target) == subset_size
  
imports: import os
  from copy import deepcopy, copy
  import numpy
  import pandas
  import pytest
  from sklearn.datasets import load_iris
  from fedot.core.data.data import InputData, get_df_from_csv
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.core.utils import fedot_project_root
  from test.unit.tasks.test_forecasting import get_ts_data_with_dt_idx
label_desc: Use image node_id 2 for calling a global function with example usage: test_data_subset_correct(data_setup) without return types