function getMessageExamples(message) {
  if (!message) {
    throw new Error('Message object must be provided.');
  }
  const examples = message.examples();
  if (examples.isEmpty()) {
    return null;
  }
  return examples;
}
Get examples related to the provided message.
@param {object} message 
@returns {Array} - An array of examples for the provided message.
@returns {null} if there are no examples
@throws {Error} If message object is not provided or is invalid.