code: def test_entity_without_entity_links(
      entity_spec: EntitySpec,
  ) -> None:  # noqa: D
      assert entity_spec.without_entity_links == EntitySpec(
          element_name="user_id",
          entity_links=(),
      )
  
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 10 for calling a global function with example usage: test_entity_without_entity_links(entity_spec) without return types