code: def get_wrong_links(
      ts_to_table_operations: list,
      ts_data_operations: list,
      non_ts_data_operations: list,
      ts_models: list,
      non_ts_models: list,
  ) -> dict:
      """
      Function that return wrong ts connections like op_A : [op_B, op_C] that means op_B and op_C
      can't be a parent for op_A.
  
      :param ts_to_table_operations: list of ts_to_table operations
      :param ts_data_operations: list of ts data operations
      :param non_ts_data_operations: list of non ts data operations
      :param ts_models: list of ts models
      :param non_ts_models: list of non ts models
      :return: dict with wrong connections
      """
      limit_lagged_parents = {
          lagged_op: ts_models
          + non_ts_models
          + non_ts_data_operations
          + ts_to_table_operations
          for lagged_op in ts_to_table_operations
      }
  
      limit_ts_models_parents = {
          ts_model: ts_models
          + non_ts_models
          + non_ts_data_operations
          + ts_to_table_operations
          for ts_model in ts_models
      }
      limit_non_ts_models_parents = {
          non_ts_model: ts_data_operations
          for non_ts_model in non_ts_models
      }
  
      limit_ts_data_operations_parents = {
          ts_data_op: ts_models
          + non_ts_models
          + non_ts_data_operations
          + ts_to_table_operations
          for ts_data_op in ts_data_operations
      }
      limit_non_ts_data_operations_parents = {
          non_ts_data_op: ts_data_operations
          for non_ts_data_op in non_ts_data_operations
      }
  
      wrong_connections = {
          **limit_non_ts_data_operations_parents,
          **limit_ts_data_operations_parents,
          **limit_non_ts_models_parents,
          **limit_ts_models_parents,
          **limit_lagged_parents,
      }
      return wrong_connections
  
imports: from typing import Optional
  from fedot.core.operations.atomized_model import AtomizedModel
  from fedot.core.operations.model import Model
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.repository.dataset_types import DataTypesEnum
  from fedot.core.repository.operation_types_repository import OperationTypesRepository, get_operations_for_task, atomized_model_type
  from fedot.core.repository.tasks import Task, TaskTypesEnum
label_desc: Use image node_id 8 for calling a global function with example usage: get_wrong_links(ts_to_table_operations, ts_data_operations, non_ts_data_operations, ts_models, non_ts_models) and returns: wrong_connections