docstr: Method to initialize ``PipelineComposerRequirements``
docstr_tok: ["Method","to","initialize","``","PipelineComposerRequirements","``"]
code: def init_composer_requirements(
      self, datetime_composing: Optional[datetime.timedelta]
  ) -> PipelineComposerRequirements:
      """Method to initialize ``PipelineComposerRequirements``"""
      preset = self["preset"]
  
      # define available operations
      if not self.get("available_operations"):
          available_operations = OperationsPreset(
              self.task, preset
          ).filter_operations_by_preset()
          self["available_operations"] = available_operations
  
      (
          primary_operations,
          secondary_operations,
      ) = PipelineOperationRepository.divide_operations(
          self.get("available_operations"), self.task
      )
  
      composer_requirements_params = (
          self._params_repository.get_params_for_composer_requirements(
              self.data
          )
      )
      self.composer_requirements = PipelineComposerRequirements(
          primary=primary_operations,
          secondary=secondary_operations,
          timeout=datetime_composing,
          n_jobs=self.n_jobs,
          **composer_requirements_params,
      )
      return self.composer_requirements
  
imports: import datetime
  from collections import UserDict
  from copy import deepcopy, copy
  from typing import Any, Dict, Optional, Union
  from golem.core.log import LoggerAdapter, default_log
  from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.optimizer import GraphGenerationParams
  from golem.utilities.utilities import determine_n_jobs
  from fedot.api.api_utils.api_params_repository import ApiParamsRepository
  from fedot.api.api_utils.presets import OperationsPreset
  from fedot.core.constants import AUTO_PRESET_NAME, DEFAULT_FORECAST_LENGTH
  from fedot.core.data.data import InputData
  from fedot.core.data.multi_modal import MultiModalData
  from fedot.core.pipelines.adapters import PipelineAdapter
  from fedot.core.pipelines.pipeline_advisor import PipelineChangeAdvisor
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from fedot.core.pipelines.pipeline_node_factory import PipelineOptNodeFactory
  from fedot.core.pipelines.verification import rules_by_task
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.pipeline_operation_repository import PipelineOperationRepository
  from fedot.core.repository.tasks import Task, TaskTypesEnum, TaskParams, TsForecastingParams
label_desc: Use image node_id 8 for calling the ApiParams obj's underlying member method code with example usage: obj.init_composer_requirements(datetime_composing) and returns: self