code: def run_analysis_case(
      train_data: InputData,
      test_data: InputData,
      case_name: str,
      task,
      metric,
      is_composed=False,
      result_path=None,
  ):
      pipeline = pipeline_by_task(
          task=task,
          metric=metric,
          data=train_data,
          is_composed=is_composed,
      )
  
      pipeline.fit(train_data)
  
      if not result_path:
          result_path = join(
              default_fedot_data_dir(),
              "structural_analysis",
              f"{case_name}",
          )
          if not exists(result_path):
              makedirs(result_path)
  
      pipeline.show(save_path=result_path)
  
      pipeline_analysis_result = NodesAnalysis(
          pipeline=pipeline,
          train_data=train_data,
          test_data=test_data,
          path_to_save=result_path,
          approaches=[NodeDeletionAnalyze, NodeReplaceOperationAnalyze],
      ).analyze()
  
      print(f"pipeline analysis result {pipeline_analysis_result}")
  
imports: from os import makedirs
  from os.path import exists, join
  from golem.core.optimisers.genetic.gp_params import GPAlgorithmParameters
  from golem.core.optimisers.genetic.operators.inheritance import GeneticSchemeTypesEnum
  from fedot.core.pipelines.pipeline_composer_requirements import PipelineComposerRequirements
  from examples.simple.classification.classification_pipelines import classification_three_depth_manual_pipeline
  from examples.simple.regression.regression_pipelines import regression_three_depth_manual_pipeline
  from fedot.core.composer.composer_builder import ComposerBuilder
  from fedot.core.data.data import InputData
  from fedot.core.data.data_split import train_test_data_setup
  from fedot.core.repository.operation_types_repository import get_operations_for_task
  from fedot.core.repository.metrics_repository import ClassificationMetricsEnum, MetricsRepository, RegressionMetricsEnum
  from fedot.core.repository.tasks import Task, TaskTypesEnum
  from fedot.core.utils import default_fedot_data_dir, fedot_project_root
  from fedot.structural_analysis.node_sa_approaches import NodeDeletionAnalyze, NodeReplaceOperationAnalyze
  from fedot.structural_analysis.nodes_sensitivity import NodesAnalysis
label_desc: Use image node_id 6 for calling a global function with example usage: run_analysis_case(train_data, test_data, case_name, task, metric, is_composed, result_path) without return types