code: def test_atomized_model_metadata(atomized_node):
      pipeline = atomized_node.operation.pipeline
  
      # check input types, it should be union of input types of primary nodes
      input_types = reduce(
          lambda types, input_types: types & set(input_types),
          [
              set(node.operation.metadata.input_types)
              for node in pipeline.primary_nodes
          ],
      )
      assert input_types == set(
          atomized_node.operation.metadata.input_types
      )
  
      # check output types, it should be output types of root node
      output_types = set(
          pipeline.root_node.operation.metadata.output_types
      )
      assert output_types == set(
          atomized_node.operation.metadata.output_types
      )
  
      # check tags, it should be union of tags of pipeline nodes
      tags = reduce(
          lambda types, node: types | set(node.operation.metadata.tags),
          pipeline.nodes,
          set(),
      )
      assert tags == set(atomized_node.operation.metadata.tags)
  
      # check presets, it should be union of presets of pipeline nodes
      presets = reduce(
          lambda types, node: types
          | set(node.operation.metadata.presets),
          pipeline.nodes,
          set(),
      )
      assert presets == set(atomized_node.operation.metadata.presets)
  
      # check task_type
      task_type = set(pipeline.root_node.operation.metadata.task_type)
      assert task_type == set(
          atomized_node.operation.metadata.task_type
      )
  
imports: import json
  import os
  from functools import reduce
  import numpy
  import pytest
  from sklearn.metrics import mean_squared_error
  from fedot.core.composer.metrics import RMSE
  from fedot.core.data.data import InputData
  from fedot.core.operations.atomized_model import AtomizedModel
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.utils import fedot_project_root
  from test.integration.utilities.test_pipeline_import_export import create_correct_path, create_func_delete_files
label_desc: Use image node_id 8 for calling a global function with example usage: test_atomized_model_metadata(atomized_node) without return types