function parseDimensions(dimensions) {
  if (!dimensions) {
    return null;
  }

  return {
    width: parseFloat(dimensions.largura),
    height: parseFloat(dimensions.altura),
    unit: 'CENTIMETER',
  };
}
Parse the Mercado Editorial dimensions format into a proper object.

@param {string} dimensions The Mercado Editorial dimensions.
@returns A object with width and height if valid.