code: def test_spec_set_all_specs(
      spec_set: InstanceSpecSet,
  ) -> None:  # noqa: D
      assert set(spec_set.all_specs) == {
          MetricSpec(element_name="bookings"),
          MeasureSpec(
              element_name="bookings",
          ),
          DimensionSpec(
              element_name="is_instant",
              entity_links=(EntityReference("booking"),),
          ),
          TimeDimensionSpec(
              element_name="ds",
              entity_links=(),
              time_granularity=TimeGranularity.DAY,
          ),
          EntitySpec(
              element_name="user_id",
              entity_links=(
                  EntityReference(element_name="listing_id"),
              ),
          ),
      }
  
imports: from __future__ import annotations
  from typing import Sequence
  import pytest
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from metricflow.specs.specs import DimensionSpec, EntityReference, EntitySpec, InstanceSpec, InstanceSpecSet, LinkableInstanceSpec, LinklessEntitySpec, MeasureSpec, MetricSpec, TimeDimensionSpec
label_desc: Use image node_id 16 for calling a global function with example usage: test_spec_set_all_specs(spec_set) without return types