code: def instance_attr_ancestors(self, name, context=None):
          
          for astroid in self.ancestors(context=context):
              if name in astroid.instance_attrs:
                  yield astroid
docs: 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)