docstr: The time granularity.
docstr_tok: ["The","time","granularity","."]
code: def grain(self) -> Optional[TimeGranularity]:
      """The time granularity."""
      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 2 for calling the TimeDimensionQueryParameter obj's underlying member method code with example usage: obj.grain() without return types