def instance_attr_ancestors(self, name, context=None):
for astroid in self.ancestors(context=context):<EOL><INDENT>if name in astroid.instance_attrs:<EOL><INDENT>yield astroid<EOL><DEDENT><DEDENT>
Iterate over the parents that define the given name as an attribute.

        :param name: The name to find definitions for.
        :type name: str

        :returns: The parents that define the given name as
            an instance attribute.
        :rtype: iterable(NodeNG)