class_docstr: Describes when there are duplicate metrics in a query.
class_docstr_tok: ["Describes","when","there","are","duplicate","metrics","in","a","query","."]
code: def from_parameters(  # noqa: D
      duplicate_metric_references: Sequence[MetricReference],
      query_resolution_path: MetricFlowQueryResolutionPath,
  ) -> DuplicateMetricIssue:
      return DuplicateMetricIssue(
          issue_type=MetricFlowQueryIssueType.ERROR,
          parent_issues=(),
          duplicate_metric_references=tuple(
              duplicate_metric_references
          ),
          query_resolution_path=query_resolution_path,
      )
  
file_path: metricflow/metricflow/query/issues/parsing/duplicate_metric.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Sequence, Tuple
  from dbt_semantic_interfaces.references import MetricReference
  from typing_extensions import override
  from metricflow.query.group_by_item.resolution_path import MetricFlowQueryResolutionPath
  from metricflow.query.issues.issues_base import MetricFlowQueryIssueType, MetricFlowQueryResolutionIssue
  from metricflow.query.resolver_inputs.base_resolver_inputs import MetricFlowQueryResolverInput
label_desc: Use image node_id 1 for calling the DuplicateMetricIssue obj's underlying member method code with example usage: obj.from_parameters(duplicate_metric_references, query_resolution_path) and returns: DuplicateMetricIssue