def __init__(
      self,
      action_spec: entity_lib.ActionSpec,
      pre_act_label: str = DEFAULT_NEXT_ACTION_SPEC_PRE_ACT_LABEL,
  ):
    """Initializes the component.

    Args:
      action_spec: The action spec to return whenever pre_act is called with
        output type NEXT_ACTION_SPEC.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    """
    super().__init__()
    self._fixed_entity_action_spec = action_spec
    self._pre_act_label = pre_act_label
Initializes the component.

    Args:
      action_spec: The action spec to return whenever pre_act is called with
        output type NEXT_ACTION_SPEC.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    
concordia/components/game_master/next_acting.py