'Get location by ID.
:param  id: ID of the node location which should be used
:type   id: ``str``
:rtype: :class:`NodeLocation`'

def ex_get_location_by_id(self, id):

    location = None
    if (id is not None):
        location = self.list_locations(ex_id=id)[0]
    return location
