'Create a node.
:return: The newly created node.
:rtype: :class:`Node`'

def create_node(self, name, size, image, location, ex_project_id):

    params = {'hostname': name, 'plan': size.id, 'operating_system': image.id, 'facility': location.id, 'include': 'plan', 'billing_cycle': 'hourly'}
    data = self.connection.request(('/projects/%s/devices' % ex_project_id), params=params, method='POST')
    status = data.object.get('status', 'OK')
    if (status == 'ERROR'):
        message = data.object.get('message', None)
        error_message = data.object.get('error_message', message)
        raise ValueError(('Failed    to    create    node:    %s' % error_message))
    return self._to_node(data=data.object)
