code: def summary(self):
          
          if self._summary is None:
              self._summary = "No summary for element."
              for doc in self.docstring:
                  if doc.doctype == "summary":
                      self._summary = doc.contents
                      break
  
              #If a parameter, member or local tag has dimensions or other children,
              #then the inner-text is not the right thing to use; find a grand-child
              #summary tag instead.
              if self._summary == "No summary for element." and len(self.docstring) > 0:
                  summary = self.doc_children("summary")
                  if len(summary) > 0:
                      self._summary = summary[0].contents
                  else:
                      self._summary = self.docstring[0].contents
  
          return self._summary
docs: Returns the docstring summary for the code element if it exists.