class_docstr: Genetic programming based composer
  
  :param optimizer: optimizer generated in ComposerBuilder.
  :param composer_requirements: requirements for composition process.
  :param pipelines_cache: Cache manager for fitted models, optional.
  :param preprocessing_cache: Cache manager for optional preprocessing encoders and imputers, optional.
class_docstr_tok: ["Genetic","programming","based","composer",":","param","optimizer",":","optimizer","generated","in","ComposerBuilder",".",":","param","composer_requirements",":","requirements","for","composition","process",".",":","param","pipelines_cache",":","Cache","manager","for","fitted","models",",","optional",".",":","param","preprocessing_cache",":","Cache","manager","for","optional","preprocessing","encoders","and","imputers",",","optional","."]
code: def __init__(
      self,
      optimizer: GraphOptimizer,
      composer_requirements: PipelineComposerRequirements,
      pipelines_cache: Optional[OperationsCache] = None,
      preprocessing_cache: Optional[PreprocessingCache] = None,
  ):
      super().__init__(optimizer, composer_requirements)
      self.composer_requirements = composer_requirements
      self.pipelines_cache: Optional[OperationsCache] = pipelines_cache
      self.preprocessing_cache: Optional[
          PreprocessingCache
      ] = preprocessing_cache
  
      self.best_models: Collection[Pipeline] = ()
  
file_path: FEDOT/fedot/core/composer/gp_composer/gp_composer.py
imports: from typing import Collection, Optional, Sequence, Tuple, Union
  from golem.core.optimisers.graph import OptGraph
  from golem.core.optimisers.optimizer import GraphOptimizer
  from fedot.core.caching.pipelines_cache import OperationsCache
  from fedot.core.caching.preprocessing_cache import PreprocessingCache
  from fedot.core.composer.composer import Composer
  from fedot.core.data.data import InputData
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.optimisers.objective.data_objective_eval import PipelineObjectiveEvaluate
  from fedot.core.optimisers.objective.data_source_splitter import DataSourceSplitter
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
label_desc: Use image node_id 1 to create a new GPComposer object from inherited base classes: Composer with example: obj = GPComposer(optimizer, composer_requirements, pipelines_cache, preprocessing_cache)