def METHOD_NAME(self, id):
    """Method to set the id of the node.
    Arguments:
        id -- string    the id to set
    """
    if id == None:
        raise ValueError('Id of Node can not be None')
    if isinstance(id, str):
        self._id = id
    else:
        try:
            stringId = str(id)
            self._id = stringId
        except Exception as exception:
            raise TypeError("Type of id in Node needs to be a string (or string castable): " + str(exception))