'Create a node.
The `ex_create_attr` parameter can include the following dictionary
key and value pairs:
* `ssh_keys`: ``list`` of ``str`` ssh public keys
* `volume_size_gb`: ``int`` defaults to 10.
* `bulk_volume_size_gb`: defaults to None.
* `use_public_network`: ``bool`` defaults to True
* `use_private_network`: ``bool`` defaults to False
* `use_ipv6`: ``bool`` defaults to True
* `anti_affinity_with`: ``uuid`` of a server to create an anti-affinity
group with that server or add it to the same group as that server.
* `user_data`: ``str`` for optional cloud-config data
:keyword ex_create_attr: A dictionary of optional attributes for
droplet creation
:type ex_create_attr: ``dict``
:return: The newly created node.
:rtype: :class:`Node`'

def create_node(self, name, size, image, location=None, ex_create_attr={}):

    attr = dict(ex_create_attr)
    attr.update(name=name, image=image.id, flavor=size.id)
    result = self.connection.request('/v1/servers', data=json.dumps(attr), method='POST')
    return self._to_node(result.object)
