class_docstr: Resolves specs for Dimension & TimeDimension given name, grain, & entity path. Utilized in where clause in Jinja syntax.
class_docstr_tok: ["Resolves","specs","for","Dimension","&","TimeDimension","given","name",",","grain",",","&","entity","path",".","Utilized","in","where","clause","in","Jinja","syntax","."]
docstr: Resolve Dimension spec with the call_parameter_sets.
docstr_tok: ["Resolve","Dimension","spec","with","the","call_parameter_sets","."]
code: def resolve_dimension_spec(
      self, name: str, entity_path: Sequence[str]
  ) -> DimensionSpec:
      """Resolve Dimension spec with the call_parameter_sets."""
      structured_name = DunderedNameFormatter.parse_name(name)
      call_parameter_set = DimensionCallParameterSet(
          dimension_reference=DimensionReference(
              element_name=structured_name.element_name
          ),
          entity_path=(
              tuple(
                  EntityReference(element_name=arg)
                  for arg in entity_path
              )
              + structured_name.entity_links
          ),
      )
      return DimensionSpec(
          element_name=call_parameter_set.dimension_reference.element_name,
          entity_links=call_parameter_set.entity_path,
      )
  
file_path: metricflow/metricflow/specs/dimension_spec_resolver.py
imports: from __future__ import annotations
  from typing import Optional, Sequence
  from dbt_semantic_interfaces.call_parameter_sets import DimensionCallParameterSet, FilterCallParameterSets, TimeDimensionCallParameterSet
  from dbt_semantic_interfaces.naming.dundered import DunderedNameFormatter
  from dbt_semantic_interfaces.references import DimensionReference, EntityReference, TimeDimensionReference
  from dbt_semantic_interfaces.type_enums import TimeGranularity
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from metricflow.specs.specs import DEFAULT_TIME_GRANULARITY, DimensionSpec, TimeDimensionSpec
label_desc: Use image node_id 2 for calling the DimensionSpecResolver obj's underlying member method code with example usage: obj.resolve_dimension_spec(name, entity_path) and returns: DimensionSpec