code: def entity_spec() -> EntitySpec:  # noqa: D
      return 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 3 for calling a global function with example usage: entity_spec() and returns: EntitySpec