original_docstring: 
          Will yield ancestor nodes from closest to farthest matched by search function if provided.
          If search function is omitted, will yield all ancestor nodes
          
docstring: Will yield ancestor nodes from closest to farthest matched by search function if provided.
  If search function is omitted, will yield all ancestor nodes
docstring_tokens: Will yield ancestor nodes from closest to farthest matched by search function if provided . If search function is omitted will yield all ancestor nodes
code: def find_ancestors(self, function: Optional[SearchFunction] = None) -> Generator['NodeWrapper', None, None]:
          """
          Will yield ancestor nodes from closest to farthest matched by search function if provided.
          If search function is omitted, will yield all ancestor nodes
          """
          current = self._internal_.node_index.get(self.parent)
          while current is not None:
              if function is None or function(current):
                  yield current
  
              current = self._internal_.node_index.get(current.parent)
code_tokens: def find_ancestors ( self , function : Optional [ SearchFunction ] = None ) -> Generator [ 'NodeWrapper' , None , None ] : current = self . _internal_ . node_index . get ( self . parent ) while current is not None : if function is None or function ( current ) : yield current current = self . _internal_ . node_index . get ( current . parent )
short_docstring: Will yield ancestor nodes from closest to farthest matched by search function if provided.
short_docstring_tokens: Will yield ancestor nodes from closest to farthest matched by search function if provided .
comment: """
          Will yield ancestor nodes from closest to farthest matched by search function if provided.
          If search function is omitted, will yield all ancestor nodes
          """