original_docstring: 
          Return closest ancestor matched by search function if provided.
          If search function is omitted, will return closest ancestor (equal to `.parent_node` getter)
          
docstring: Return closest ancestor matched by search function if provided.
  If search function is omitted, will return closest ancestor (equal to `.parent_node` getter)
docstring_tokens: Return closest ancestor matched by search function if provided . If search function is omitted will return closest ancestor ( equal to ` . parent_node ` getter )
code: def find_closest_ancestor(self, function: Optional[SearchFunction] = None) -> Optional['NodeWrapper']:
          """
          Return closest ancestor matched by search function if provided.
          If search function is omitted, will return closest ancestor (equal to `.parent_node` getter)
          """
          return next(self.find_ancestors(function), None)
code_tokens: def find_closest_ancestor ( self , function : Optional [ SearchFunction ] = None ) -> Optional [ 'NodeWrapper' ] : return next ( self . find_ancestors ( function ) , None )
short_docstring: Return closest ancestor matched by search function if provided.
short_docstring_tokens: Return closest ancestor matched by search function if provided .
comment: """
          Return closest ancestor matched by search function if provided.
          If search function is omitted, will return closest ancestor (equal to `.parent_node` getter)
          """