function getRequireSameDimensions (scenario, config) {
  return scenario?.requireSameDimensions ?? config?.requireSameDimensions ?? config?.defaultRequireSameDimensions ?? true;
}
@description Determines whether the same dimensions are required based on the given scenario and configuration.

@param {Object} scenario - The scenario object, which may contain a requireSameDimensions property.
@param {Object} config - The configuration object, which includes requireSameDimensions and defaultMisMatchThreshold properties.
@returns {boolean} True if the same dimensions are required, otherwise false.