class_docstr: See EntityPathPattern for more details.
class_docstr_tok: ["See","EntityPathPattern","for","more","details","."]
code: def from_parameters(  # noqa: D
      fields_to_compare: Sequence[ParameterSetField],
      element_name: Optional[str] = None,
      entity_links: Optional[Sequence[EntityReference]] = None,
      time_granularity: Optional[TimeGranularity] = None,
      date_part: Optional[DatePart] = None,
  ) -> EntityLinkPatternParameterSet:
      return EntityLinkPatternParameterSet(
          fields_to_compare=tuple(sorted(fields_to_compare)),
          element_name=element_name,
          entity_links=tuple(entity_links)
          if entity_links is not None
          else None,
          time_granularity=time_granularity,
          date_part=date_part,
      )
  
imports: from __future__ import annotations
  import logging
  from dataclasses import dataclass
  from enum import Enum
  from typing import Any, List, Optional, Sequence, Tuple
  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 more_itertools import is_sorted
  from typing_extensions import override
  from metricflow.specs.patterns.spec_pattern import SpecPattern
  from metricflow.specs.specs import InstanceSpec, InstanceSpecSet, LinkableInstanceSpec
label_desc: Use image node_id 1 for calling the EntityLinkPatternParameterSet obj's underlying member method code with example usage: obj.from_parameters(fields_to_compare, element_name, entity_links, time_granularity, date_part) and returns: EntityLinkPatternParameterSet