code: def dimension_spec() -> DimensionSpec:  # noqa: D
      return DimensionSpec(
          element_name="platform",
          entity_links=(
              EntityReference(element_name="user_id"),
              EntityReference(element_name="device_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 1 for calling a global function with example usage: dimension_spec() and returns: DimensionSpec