docstr: Return the possible group-by-items for a dimension values query with no metrics.
docstr_tok: ["Return","the","possible","group-by-items","for","a","dimension","values","query","with","no","metrics","."]
code: def group_by_item_specs_for_no_metrics_query(
      self,
      with_any_of: Optional[Set[LinkableElementProperties]] = None,
      without_any_of: Optional[Set[LinkableElementProperties]] = None,
  ) -> Sequence[LinkableInstanceSpec]:
      """Return the possible group-by-items for a dimension values query with no metrics."""
      frozen_with_any_of = (
          LinkableElementProperties.all_properties()
          if with_any_of is None
          else frozenset(with_any_of)
      )
      frozen_without_any_of = (
          frozenset()
          if without_any_of is None
          else frozenset(without_any_of)
      )
  
      all_linkable_specs = self._linkable_spec_resolver.get_linkable_elements_for_distinct_values_query(
          with_any_of=frozen_with_any_of,
          without_any_of=frozen_without_any_of,
      ).as_spec_set
  
      return sorted(
          all_linkable_specs.as_tuple, key=lambda x: x.qualified_name
      )
  
imports: from __future__ import annotations
  import logging
  from typing import Dict, FrozenSet, Optional, Sequence, Set
  from dbt_semantic_interfaces.enum_extension import assert_values_exhausted
  from dbt_semantic_interfaces.protocols.metric import Metric, MetricInputMeasure, MetricType
  from dbt_semantic_interfaces.protocols.semantic_manifest import SemanticManifest
  from dbt_semantic_interfaces.references import MeasureReference, MetricReference
  from metricflow.errors.errors import DuplicateMetricError, MetricNotFoundError, NonExistentMeasureError
  from metricflow.model.semantics.linkable_element_properties import LinkableElementProperties
  from metricflow.model.semantics.linkable_spec_resolver import LinkableElementSet, ValidLinkableSpecResolver
  from metricflow.model.semantics.semantic_model_join_evaluator import MAX_JOIN_HOPS
  from metricflow.model.semantics.semantic_model_lookup import SemanticModelLookup
  from metricflow.protocols.semantics import MetricAccessor
  from metricflow.specs.specs import LinkableInstanceSpec
label_desc: Use image node_id 4 for calling the MetricLookup obj's underlying member method code with example usage: obj.group_by_item_specs_for_no_metrics_query(with_any_of, without_any_of) and returns: sorted