code: def test_valid_parameter_fields() -> None:
      """Tests that ParameterSetField.value maps to a valid field in EntityLinkPatternParameterSet."""
      parameter_set = EntityLinkPatternParameterSet.from_parameters(
          fields_to_compare=(),
          element_name=None,
          entity_links=None,
          time_granularity=None,
          date_part=None,
      )
      parameter_set_dict = set(asdict(parameter_set).keys())
      for spec_field in ParameterSetField:
          assert (
              spec_field.value in parameter_set_dict
          ), f"{spec_field} is not a valid field for {parameter_set}"
  
imports: from __future__ import annotations
  import logging
  from dataclasses import asdict
  from typing import Sequence
  import pytest
  from dbt_semantic_interfaces.naming.keywords import METRIC_TIME_ELEMENT_NAME
  from dbt_semantic_interfaces.references import EntityReference
  from dbt_semantic_interfaces.type_enums import TimeGranularity
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from metricflow.specs.patterns.entity_link_pattern import EntityLinkPattern, EntityLinkPatternParameterSet, ParameterSetField
  from metricflow.specs.specs import DimensionSpec, EntitySpec, LinkableInstanceSpec, TimeDimensionSpec
  from metricflow.test.time.metric_time_dimension import MTD_SPEC_MONTH, MTD_SPEC_WEEK, MTD_SPEC_YEAR
label_desc: Use image node_id 2 for calling a global function with example usage: test_valid_parameter_fields() without return types