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"?
code: def _get_semantic_models_with_joinable_entity(
      self,
      left_semantic_model_reference: SemanticModelReference,
      entity_reference: EntityReference,
  ) -> Sequence[SemanticModel]:
      # May switch to non-cached implementation.
      semantic_models = self._entity_to_semantic_model[
          entity_reference.element_name
      ]
      valid_semantic_models = []
      for semantic_model in semantic_models:
          if self._join_evaluator.is_valid_semantic_model_join(
              left_semantic_model_reference=left_semantic_model_reference,
              right_semantic_model_reference=semantic_model.reference,
              on_entity_reference=entity_reference,
          ):
              valid_semantic_models.append(semantic_model)
      return valid_semantic_models
  
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 4 for calling the ValidLinkableSpecResolver obj's underlying member method code with example usage: obj._get_semantic_models_with_joinable_entity(left_semantic_model_reference, entity_reference) and returns: valid_semantic_models