code: def test_external_static_optimizer(data_fixture, request):
      data = request.getfixturevalue(data_fixture)
      train_data, test_data = train_test_data_setup(data=data)
  
      automl = Fedot(
          problem="classification",
          timeout=0.2,
          logging_level=logging.DEBUG,
          preset="fast_train",
          with_tuning=False,
          optimizer=partial(StaticOptimizer, node_name="logit"),
          pop_size=2,
      )
      obtained_pipeline = automl.fit(train_data)
      automl.predict(test_data)
  
      expected_pipeline = Pipeline(PipelineNode("logit"))
  
      assert (
          obtained_pipeline.root_node.descriptive_id
          == expected_pipeline.root_node.descriptive_id
      )
  
file_path: FEDOT/test/unit/optimizer/test_external.py
imports: import logging
  from functools import partial
  from typing import Optional, Union, Sequence
  import pytest
  from golem.core.dag.graph import Graph
  from golem.core.optimisers.graph import OptGraph, OptNode
  from golem.core.optimisers.objective.objective import Objective, ObjectiveFunction
  from golem.core.optimisers.optimization_parameters import OptimizationParameters
  from golem.core.optimisers.optimizer import GraphGenerationParams, GraphOptimizer, AlgorithmParameters
  from fedot import Fedot
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from test.integration.models.test_model import classification_dataset
label_desc: Use image node_id 1 for calling a global function with example usage: test_external_static_optimizer(data_fixture, request) without return types