code: def test_node_factory_log_reg_correct(data_setup):
      model_type = "logit"
      node = PipelineNode(operation_type=model_type)
  
      expected_model = Model(operation_type=model_type).__class__
      actual_model = node.operation.__class__
  
      assert isinstance(node, PipelineNode)
      assert node.is_primary
      assert expected_model == actual_model
  
imports: import numpy
  import pytest
  from golem.core.dag.linked_graph_node import LinkedGraphNode
  from sklearn.datasets import load_iris
  from sklearn.linear_model import LogisticRegression
  from sklearn.metrics import accuracy_score, classification_report
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.operations.model import Model
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.core.utils import DEFAULT_PARAMS_STUB, NESTED_PARAMS_LABEL
label_desc: Use image node_id 3 for calling a global function with example usage: test_node_factory_log_reg_correct(data_setup) without return types