docstr: Returns the value of metric defined by task
docstr_tok: ["Returns","the","value","of","metric","defined","by","task"]
code: def compute_default_metric(
      task_type: TaskTypesEnum,
      true: InputData,
      predicted: OutputData,
      round_up_to: int = 6,
  ) -> float:
      """Returns the value of metric defined by task"""
      metric_id = MetricByTask.get_default_quality_metrics(task_type)[0]
      metric = MetricsRepository.get_metric_class(metric_id)
      try:
          return round(
              metric.metric(reference=true, predicted=predicted),
              round_up_to,
          )
      except ValueError:
          return metric.default_value
  
imports: from typing import List
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.repository.metrics_repository import MetricsEnum, RegressionMetricsEnum, ClassificationMetricsEnum, ClusteringMetricsEnum, MetricsRepository, TimeSeriesForecastingMetricsEnum
  from fedot.core.repository.tasks import TaskTypesEnum
label_desc: Use image node_id 2 for calling the MetricByTask obj's underlying member method code with example usage: obj.compute_default_metric(task_type, true, predicted, round_up_to) and returns: round, metric