code: def compatible_task_types(
      main_task_type: TaskTypesEnum,
  ) -> List[TaskTypesEnum]:
      _compatible_task_types = {
          TaskTypesEnum.ts_forecasting: [TaskTypesEnum.regression],
          TaskTypesEnum.classification: [TaskTypesEnum.clustering],
          TaskTypesEnum.regression: [
              TaskTypesEnum.clustering,
              TaskTypesEnum.classification,
          ],
      }
      if main_task_type not in _compatible_task_types:
          return []
      return _compatible_task_types[main_task_type]
  
file_path: FEDOT/fedot/core/repository/tasks.py
imports: from dataclasses import dataclass
  from typing import Any, List, Optional
  from golem.utilities.data_structures import ComparableEnum
label_desc: Use image node_id 1 for calling a global function with example usage: compatible_task_types(main_task_type) and returns: _compatible_task_types, list