docstr: Date part to extract from the dimension.
docstr_tok: ["Date","part","to","extract","from","the","dimension","."]
code: def date_part(self) -> Optional[DatePart]:
      """Date part to extract from the dimension."""
      raise NotImplementedError
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Optional, Protocol, Union, runtime_checkable
  from dbt_semantic_interfaces.type_enums import TimeGranularity
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
label_desc: Use image node_id 3 for calling the TimeDimensionQueryParameter obj's underlying member method code with example usage: obj.date_part() without return types