def METHOD_NAME(self, pid, **kwargs):
    """Register a persistent identifier.
    See: :meth:`invenio_pidstore.models.PersistentIdentifier.register`.
    """
    if not pid.is_registered():
        return pid.METHOD_NAME()
    return True