getAttenuatorFromDefinition = attenuationDefinition => {
  if (!isAttenuationDefinition(attenuationDefinition)) {
    throw Error(
      `Invalid attenuation ${q(
        attenuationDefinition,
      )}, must be an array of params for default attenuator or an object with an attenuator key`,
    );
  }
  if (isArray(attenuationDefinition)) {
    return {
      displayName: '<default attenuator>',
      specifier: null,
      params: attenuationDefinition,
    };
  } else {
    return {
      displayName: attenuationDefinition[ATTENUATOR_KEY],
      specifier: attenuationDefinition[ATTENUATOR_KEY],
      params: attenuationDefinition[ATTENUATOR_PARAMS_KEY],
    };
  }
}
@param {import('./types.js').AttenuationDefinition} attenuationDefinition
@returns {import('./types.js').UnifiedAttenuationDefinition}