code: def _get_task_by_name(task_name):
      """Function return task by its name
  
      :param task_name: name of available task type
      :return task: TaskTypesEnum.<appropriate task>
      """
      task_by_name = {
          "regression": TaskTypesEnum.regression,
          "classification": TaskTypesEnum.classification,
          "clustering": TaskTypesEnum.clustering,
          "ts_forecasting": TaskTypesEnum.ts_forecasting,
      }
      try:
          task = task_by_name[task_name]
      except KeyError:
          raise NotImplementedError(
              f'Task with name "{task_name}" not available, use one of '
              f"the following task names: {list(task_by_name.keys())}"
          )
  
      return task
  
file_path: FEDOT/fedot/api/help.py
imports: from fedot.core.pipelines.tuning.search_space import PipelineSearchSpace
  from fedot.core.repository.operation_types_repository import OperationTypesRepository
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 5 for calling a global function with example usage: _get_task_by_name(task_name) and returns: task