def METHOD_NAME(self, pid, record, links_factory=None, **kwargs):
    """Serialize a single record and persistent identifier.
    :param pid: Persistent identifier instance.
    :param record: Record instance.
    :param links_factory: Factory function for record links.
    """
    record = record.dumps(document_replace_refs_dumper)
    if contributions := record.pop('contribution', []):
        record['contribution'] = process_i18n_literal_fields(contributions)
    # enrich record data with encoded identifier alternatives. The
    # record identifiers list should contain only distinct identifier !
    identifiers = set([
        IdentifierFactory.create_identifier(identifier_data)
        for identifier_data in record.get('identifiedBy', [])
    ])
    for identifier in list(identifiers):
        identifiers.update(identifier.get_alternatives())
    record['identifiedBy'] = \
        [identifier.dump() for identifier in identifiers]
    return RISFormatter(record=record).format()