code: def test_merge_specs(
      dimension_spec: DimensionSpec, entity_spec: EntitySpec
  ) -> None:
      """Tests InstanceSpec.merge()."""
      assert InstanceSpec.merge([dimension_spec], [entity_spec]) == [
          dimension_spec,
          entity_spec,
      ]
  
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 4 for calling a global function with example usage: test_merge_specs(dimension_spec, entity_spec) without return types