code: def node_factory():
      task = Task(TaskTypesEnum.classification)
      advisor = PipelineChangeAdvisor(task)
      primary_operations = [
          "bernb",
          "rf",
          "qda",
          "pca",
          "normalization",
      ]
      secondary_operations = ["dt", "logit", "rf", "scaling"]
      requirements = PipelineComposerRequirements(
          primary=primary_operations, secondary=secondary_operations
      )
      return PipelineOptNodeFactory(
          requirements=requirements, advisor=advisor
      )
  
file_path: FEDOT/test/unit/pipelines/test_pipeline_node_factory.py
imports: import pytest
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from golem.core.optimisers.graph import OptNode
  from fedot.core.pipelines.pipeline_advisor import PipelineChangeAdvisor
  from fedot.core.pipelines.pipeline_node_factory import PipelineOptNodeFactory
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 2 for calling a global function with example usage: node_factory() and returns: PipelineOptNodeFactory