code: def summary(self):
          
          self.detach()
          if self._summary is None:
              self._summary = BoltStatementResultSummary(**self._metadata)
          return self._summary
docs: Obtain the summary of this result, buffering any remaining records.
  
          :returns: The :class:`.ResultSummary` for this result