code: def serialize_oaipmh(self, pid, record):
          
          obj = self.transform_record(pid, record['_source']) \
              if isinstance(record['_source'], Record) \
              else self.transform_search_hit(pid, record)
  
          return self.schema.dump_etree(obj)
docs: Serialize a single record for OAI-PMH.