class_docstr: Time dimension requested in a query.
class_docstr_tok: ["Time","dimension","requested","in","a","query","."]
code: def query_resolver_input(
      self,
  ) -> ResolverInputForGroupByItem:  # noqa: D
      fields_to_compare = [
          ParameterSetField.ELEMENT_NAME,
          ParameterSetField.ENTITY_LINKS,
          ParameterSetField.DATE_PART,
      ]
      if self.grain is not None:
          fields_to_compare.append(ParameterSetField.TIME_GRANULARITY)
  
      name_structure = StructuredLinkableSpecName.from_name(
          self.name.lower()
      )
  
      return ResolverInputForGroupByItem(
          input_obj=self,
          input_obj_naming_scheme=ObjectBuilderNamingScheme(),
          spec_pattern=EntityLinkPattern(
              EntityLinkPatternParameterSet.from_parameters(
                  fields_to_compare=tuple(fields_to_compare),
                  element_name=name_structure.element_name,
                  entity_links=tuple(
                      EntityReference(link_name)
                      for link_name in name_structure.entity_link_names
                  ),
                  time_granularity=self.grain,
                  date_part=self.date_part,
              )
          ),
      )
  
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import Optional
  from dbt_semantic_interfaces.protocols import ProtocolHint
  from dbt_semantic_interfaces.references import EntityReference
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from typing_extensions import override
  from metricflow.naming.linkable_spec_name import StructuredLinkableSpecName
  from metricflow.naming.metric_scheme import MetricNamingScheme
  from metricflow.naming.object_builder_scheme import ObjectBuilderNamingScheme
  from metricflow.protocols.query_parameter import DimensionOrEntityQueryParameter, InputOrderByParameter, TimeDimensionQueryParameter
  from metricflow.protocols.query_parameter import SavedQueryParameter
  from metricflow.query.resolver_inputs.query_resolver_inputs import ResolverInputForGroupByItem, ResolverInputForMetric, ResolverInputForOrderByItem
  from metricflow.specs.patterns.entity_link_pattern import EntityLinkPattern, EntityLinkPatternParameterSet, ParameterSetField
label_desc: Use image node_id 3 for calling the TimeDimensionParameter obj's underlying member method code with example usage: obj.query_resolver_input() and returns: ResolverInputForGroupByItem