class_docstr: A dimension that is passed in through the where filter parameter.
class_docstr_tok: ["A","dimension","that","is","passed","in","through","the","where","filter","parameter","."]
docstr: The date_part requested to extract.
docstr_tok: ["The","date_part","requested","to","extract","."]
code: def date_part(self, date_part_name: str) -> QueryInterfaceDimension:
      """The date_part requested to extract."""
      return WhereFilterDimension(
          column_association_resolver=self._column_association_resolver,
          resolved_spec_lookup=self._resolved_spec_lookup,
          where_filter_location=self._where_filter_location,
          rendered_spec_tracker=self._rendered_spec_tracker,
          element_name=self._element_name,
          entity_links=self._entity_links,
          time_grain=self._time_grain,
          date_part=DatePart(date_part_name.lower()),
      )
  
imports: from __future__ import annotations
  import logging
  from typing import Optional, Sequence, Union
  from dbt_semantic_interfaces.call_parameter_sets import DimensionCallParameterSet, TimeDimensionCallParameterSet
  from dbt_semantic_interfaces.naming.dundered import DunderedNameFormatter
  from dbt_semantic_interfaces.protocols.protocol_hint import ProtocolHint
  from dbt_semantic_interfaces.protocols.query_interface import QueryInterfaceDimension, QueryInterfaceDimensionFactory
  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 typing_extensions import override
  from metricflow.errors.errors import InvalidQuerySyntax
  from metricflow.query.group_by_item.filter_spec_resolution.filter_location import WhereFilterLocation
  from metricflow.query.group_by_item.filter_spec_resolution.filter_spec_lookup import FilterSpecResolutionLookUp, ResolvedSpecLookUpKey
  from metricflow.specs.column_assoc import ColumnAssociationResolver
  from metricflow.specs.rendered_spec_tracker import RenderedSpecTracker
label_desc: Use image node_id 4 for calling the WhereFilterDimension obj's underlying member method code with example usage: obj.date_part(date_part_name) and returns: WhereFilterDimension