code: def test_node_evaluator_with_scd_target(
      consistent_id_object_repository: ConsistentIdObjectRepository,
      scd_semantic_manifest_lookup: SemanticManifestLookup,
  ) -> None:
      """Tests the case where the joined node is an SCD with a validity window filter."""
      node_data_set_resolver: DataflowPlanNodeOutputDataSetResolver = DataflowPlanNodeOutputDataSetResolver(
          column_association_resolver=DunderColumnAssociationResolver(
              scd_semantic_manifest_lookup
          ),
          semantic_manifest_lookup=scd_semantic_manifest_lookup,
      )
  
      source_nodes = tuple(
          consistent_id_object_repository.scd_model_read_nodes.values()
      )
  
      node_evaluator = NodeEvaluatorForLinkableInstances(
          semantic_model_lookup=scd_semantic_manifest_lookup.semantic_model_lookup,
          # Use all nodes in the simple model as candidates for joins.
          nodes_available_for_joins=source_nodes,
          node_data_set_resolver=node_data_set_resolver,
      )
  
      evaluation = node_evaluator.evaluate_node(
          required_linkable_specs=[
              DimensionSpec(
                  element_name="is_lux",
                  entity_links=(
                      EntityReference(element_name="listing"),
                  ),
              )
          ],
          start_node=consistent_id_object_repository.scd_model_read_nodes[
              "bookings_source"
          ],
          default_join_type=SqlJoinType.LEFT_OUTER,
      )
  
      assert evaluation == LinkableInstanceSatisfiabilityEvaluation(
          local_linkable_specs=(),
          joinable_linkable_specs=(
              DimensionSpec(
                  element_name="is_lux",
                  entity_links=(
                      EntityReference(element_name="listing"),
                  ),
              ),
          ),
          join_recipes=(
              JoinLinkableInstancesRecipe(
                  node_to_join=consistent_id_object_repository.scd_model_read_nodes[
                      "listings"
                  ],
                  join_on_entity=LinklessEntitySpec.from_element_name(
                      "listing"
                  ),
                  satisfiable_linkable_specs=[
                      DimensionSpec(
                          element_name="is_lux",
                          entity_links=(
                              EntityReference(element_name="listing"),
                          ),
                      ),
                  ],
                  join_on_partition_dimensions=(),
                  join_on_partition_time_dimensions=(),
                  validity_window=ValidityWindowJoinDescription(
                      window_start_dimension=TimeDimensionSpec(
                          element_name="window_start", entity_links=()
                      ),
                      window_end_dimension=TimeDimensionSpec(
                          element_name="window_end", entity_links=()
                      ),
                  ),
                  join_type=SqlJoinType.LEFT_OUTER,
              ),
          ),
          unjoinable_linkable_specs=(),
      )
  
imports: from __future__ import annotations
  import logging
  from typing import Sequence
  import pytest
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from metricflow.dataflow.builder.dataflow_plan_builder import DataflowPlanBuilder
  from metricflow.dataflow.builder.node_data_set import DataflowPlanNodeOutputDataSetResolver
  from metricflow.dataflow.builder.node_evaluator import JoinLinkableInstancesRecipe, LinkableInstanceSatisfiabilityEvaluation, NodeEvaluatorForLinkableInstances
  from metricflow.dataflow.builder.partitions import PartitionTimeDimensionJoinDescription
  from metricflow.dataflow.dataflow_plan import BaseOutput, ValidityWindowJoinDescription
  from metricflow.dataset.dataset import DataSet
  from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
  from metricflow.plan_conversion.column_resolver import DunderColumnAssociationResolver
  from metricflow.plan_conversion.node_processor import PreJoinNodeProcessor
  from metricflow.specs.specs import DimensionSpec, EntityReference, EntitySpec, LinkableInstanceSpec, LinklessEntitySpec, TimeDimensionSpec
  from metricflow.sql.sql_plan import SqlJoinType
  from metricflow.test.fixtures.model_fixtures import ConsistentIdObjectRepository
label_desc: Use image node_id 12 for calling a global function with example usage: test_node_evaluator_with_scd_target(consistent_id_object_repository, scd_semantic_manifest_lookup) without return types