class_docstr: Figures out what linkable specs are valid for a given metric.
  
  e.g. Can you query the metric "bookings" by "listing__country_latest"?
docstr: See get_linkable_element_set_for_measure().
docstr_tok: ["See","get_linkable_element_set_for_measure","(",")","."]
code: def _get_linkable_element_set_for_measure(
      self,
      measure_reference: MeasureReference,
      with_any_of: FrozenSet[
          LinkableElementProperties
      ] = LinkableElementProperties.all_properties(),
      without_any_of: FrozenSet[
          LinkableElementProperties
      ] = frozenset(),
  ) -> LinkableElementSet:
      """See get_linkable_element_set_for_measure()."""
      measure_semantic_model = self._get_semantic_model_for_measure(
          measure_reference
      )
  
      elements_in_semantic_model = self._get_elements_in_semantic_model(
          measure_semantic_model
      )
      metric_time_elements = self._get_metric_time_elements(
          measure_reference
      )
      joined_elements = self._get_joined_elements(
          measure_semantic_model
      )
  
      return LinkableElementSet.merge_by_path_key(
          (
              elements_in_semantic_model,
              metric_time_elements,
              joined_elements,
          )
      ).filter(
          with_any_of=with_any_of,
          without_any_of=without_any_of,
      )
  
imports: from __future__ import annotations
  import logging
  import time
  from collections import defaultdict
  from dataclasses import dataclass
  from typing import Dict, FrozenSet, List, Optional, Sequence, Set, Tuple
  from dbt_semantic_interfaces.enum_extension import assert_values_exhausted
  from dbt_semantic_interfaces.pretty_print import pformat_big_objects
  from dbt_semantic_interfaces.protocols.dimension import Dimension, DimensionType
  from dbt_semantic_interfaces.protocols.semantic_manifest import SemanticManifest
  from dbt_semantic_interfaces.protocols.semantic_model import SemanticModel
  from dbt_semantic_interfaces.references import DimensionReference, MeasureReference, MetricReference, SemanticModelReference, TimeDimensionReference
  from dbt_semantic_interfaces.type_enums import MetricType
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from metricflow.dataset.dataset import DataSet
  from metricflow.errors.errors import UnknownMetricLinkingError
  from metricflow.model.semantics.linkable_element_properties import LinkableElementProperties
  from metricflow.model.semantics.semantic_model_join_evaluator import SemanticModelJoinEvaluator
  from metricflow.model.semantics.semantic_model_lookup import SemanticModelLookup
  from metricflow.protocols.semantics import SemanticModelAccessor
  from metricflow.specs.specs import DEFAULT_TIME_GRANULARITY, DimensionSpec, EntityReference, EntitySpec, LinkableSpecSet, TimeDimensionSpec
label_desc: Use image node_id 8 for calling the ValidLinkableSpecResolver obj's underlying member method code with example usage: obj._get_linkable_element_set_for_measure(measure_reference, with_any_of, without_any_of) and returns: LinkableElementSet