class_docstr: Describes an issue where the date_part can't be used in the query due to metric limitations.
class_docstr_tok: ["Describes","an","issue","where","the","date_part","ca","n't","be","used","in","the","query","due","to","metric","limitations","."]
code: def from_parameters(  # noqa: D
      parent_issues: Sequence[MetricFlowQueryResolutionIssue],
      query_resolution_path: MetricFlowQueryResolutionPath,
      candidate_specs: Sequence[LinkableInstanceSpec],
  ) -> MetricExcludesDatePartIssue:
      return MetricExcludesDatePartIssue(
          issue_type=MetricFlowQueryIssueType.ERROR,
          parent_issues=tuple(parent_issues),
          query_resolution_path=query_resolution_path,
          candidate_specs=tuple(candidate_specs),
      )
  
file_path: metricflow/metricflow/query/issues/group_by_item_resolver/invalid_use_of_date_part.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Sequence, Tuple
  from typing_extensions import override
  from metricflow.mf_logging.pretty_print import mf_pformat
  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
  from metricflow.specs.specs import LinkableInstanceSpec
label_desc: Use image node_id 1 for calling the MetricExcludesDatePartIssue obj's underlying member method code with example usage: obj.from_parameters(parent_issues, query_resolution_path, candidate_specs) and returns: MetricExcludesDatePartIssue