code: def oaiid_minter(record_uuid, data):
      
      pid_value = data.get('_oai', {}).get('id')
      if pid_value is None:
          fetcher_name = \
              current_app.config.get('OAISERVER_CONTROL_NUMBER_FETCHER', 'recid')
          cn_pid = current_pidstore.fetchers[fetcher_name](record_uuid, data)
          pid_value = current_app.config.get('OAISERVER_ID_PREFIX', '') + str(
              cn_pid.pid_value
          )
      provider = OAIIDProvider.create(
          object_type='rec', object_uuid=record_uuid,
          pid_value=str(pid_value)
      )
      data.setdefault('_oai', {})
      data['_oai']['id'] = provider.pid.pid_value
      return provider.pid
docs: Mint record identifiers.
  
      :param record_uuid: The record UUID.
      :param data: The record data.
      :returns: A :class:`invenio_pidstore.models.PersistentIdentifier` instance.