This function checks whether the API key provided as an argument is in the
correct format.
Usage
check_api_key(api_key)
Arguments
api_key
An API key.
Value
Nothing is returned. If the API key is in the correct format, a
success message is printed. If the API key is not in the correct format,
an error message is printed and the function aborts.