code: def file_data():
      test_file_path = (
          Path(__file__)
          .parents[3]
          .joinpath("data", "simple_classification.csv")
      )
      input_data = InputData.from_csv(test_file_path)
      input_data.idx = to_categorical_codes(
          categorical_ids=input_data.idx
      )
      return input_data
  
imports: from copy import deepcopy
  from pathlib import Path
  import pytest
  from golem.core.dag.graph_node import GraphNode
  from golem.core.dag.verification_rules import DEFAULT_DAG_RULES
  from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.genetic.operators.base_mutations import MutationStrengthEnum
  from golem.core.optimisers.genetic.operators.mutation import Mutation
  from golem.core.optimisers.graph import OptGraph, OptNode
  from golem.core.optimisers.optimizer import GraphGenerationParams
  from fedot.core.composer.gp_composer.specific_operators import boosting_mutation
  from fedot.core.data.data import InputData
  from fedot.core.pipelines.adapters import PipelineAdapter
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.pipeline_builder import PipelineBuilder
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from fedot.core.pipelines.pipeline_graph_generation_params import get_pipeline_generation_params
  from fedot.core.repository.operation_types_repository import get_operations_for_task
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from test.integration.composer.test_composer import to_categorical_codes
  from test.unit.dag.test_graph_utils import find_first
  from test.unit.tasks.test_forecasting import get_ts_data
label_desc: Use image node_id 2 for calling a global function with example usage: file_data() and returns: input_data