code: def test_validity_window_conversion(
      consistent_id_object_repository: ConsistentIdObjectRepository,
      scd_semantic_manifest_lookup: SemanticManifestLookup,
  ) -> None:
      """Tests converting an instance set with a single validity window into a ValidityWindowJoinDescription."""
      # The listings semantic model uses a 2-column SCD Type III layout
      dataset = consistent_id_object_repository.scd_model_data_sets[
          "listings"
      ]
      expected_join_description = ValidityWindowJoinDescription(
          window_start_dimension=TimeDimensionSpec(
              element_name="window_start",
              time_granularity=TimeGranularity.DAY,
              entity_links=(),
          ),
          window_end_dimension=TimeDimensionSpec(
              element_name="window_end",
              time_granularity=TimeGranularity.DAY,
              entity_links=(),
          ),
      )
  
      validity_window_join_description = CreateValidityWindowJoinDescription(
          semantic_model_lookup=scd_semantic_manifest_lookup.semantic_model_lookup
      ).transform(
          instance_set=dataset.instance_set
      )
  
      assert (
          validity_window_join_description is not None
      ), "Failed to make a validity window join description from a dataset which should have one configured!"
      assert (
          validity_window_join_description == expected_join_description
      ), f"Expected validity window: `{expected_join_description}` but got: `{validity_window_join_description}`"
  
file_path: metricflow/metricflow/test/plan_conversion/instance_converters/test_create_validity_window_join_description.py
imports: from __future__ import annotations
  import pytest
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from metricflow.dataflow.dataflow_plan import ValidityWindowJoinDescription
  from metricflow.instances import InstanceSet
  from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
  from metricflow.plan_conversion.instance_converters import CreateValidityWindowJoinDescription
  from metricflow.specs.specs import TimeDimensionSpec
  from metricflow.test.fixtures.model_fixtures import ConsistentIdObjectRepository
label_desc: Use image node_id 2 for calling a global function with example usage: test_validity_window_conversion(consistent_id_object_repository, scd_semantic_manifest_lookup) without return types