'Returns True, if defined as a name in a statement, function or class.
Returns False, if it\'s a reference to such a definition.'

def is_definition(self):

    if (self._name.tree_name is None):
        return True
    else:
        return self._name.tree_name.is_definition()
