code: def set_abstract(self, xml_dict):
          
          if self.record.get('HasAbstract') == 1 and xml_dict:
              self.abstract = self.parse_abstract(xml_dict)
          else:
              self.abstract = ''
docs: If record has an abstract, extract it from PubMed's XML data