def validate(message):
    """
    Check if the message is in the correct format.
    """
    if not ('x' in message and 'y' in message):
        return False

    if not(isinstance(message['x'], float)) or not(isinstance(message['y'], float)):
        return False

    return True