code: def _get_extended_task(recipe: str, positive_class: str) -> str:
      """
      :param step_config: Step config
      :return: Extended type string. Currently supported types are: "regression",
      "binary_classification", "multiclass_classification"
      """
      if "regression" in recipe:
          return "regression"
      elif "classification" in recipe:
          if positive_class is not None:
              return "classification/binary"
          else:
              return "classification/multiclass"
      raise MlflowException(
          f"No model type for template kind {recipe}",
          error_code=INVALID_PARAMETER_VALUE,
      )
  
file_path: mlflow/mlflow/recipes/utils/metrics.py
imports: import importlib
  import logging
  import sys
  from typing import Any, Dict, List, Optional
  from mlflow.exceptions import BAD_REQUEST, MlflowException
  from mlflow.models import EvaluationMetric, make_metric
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
label_desc: Use image node_id 2 for calling a global function with example usage: _get_extended_task(recipe, positive_class) and returns: str, str, str