def METHOD_NAME(self, *args, **options):
    options = self.get_args_from_database() if options['args_from_database'] else options
    if options == {}:
        return
    args = options.get('verification_ids', None)
    force_must_retry = False
    if args:
        force_must_retry = True
        attempts_to_retry = SoftwareSecurePhotoVerification.objects.filter(
            receipt_id__in=options['verification_ids']
        )
        log.info(
            f"Attempting to re-submit {len(attempts_to_retry)} failed SoftwareSecurePhotoVerification submissions; "
            f"with retry verification ids from config model"
        )
    else:
        # Filter by status
        status = options['status']
        if status != 'must_retry':
            force_must_retry = True
        attempts_to_retry = SoftwareSecurePhotoVerification.objects.filter(
            status=status
        )
        log.info(
            f"Attempting to re-submit {len(attempts_to_retry)} failed SoftwareSecurePhotoVerification submissions; "
            f"\nwith status: {status}"
        )
        # Make sure we have both a start date and end date
        if options['start_datetime'] is not None and options['end_datetime'] is not None:
            start_datetime = datetime.strptime(options['start_datetime'], '%Y-%m-%d %H:%M:%S')
            end_datetime = datetime.strptime(options['end_datetime'], '%Y-%m-%d %H:%M:%S')
            # Filter by date range
            attempts_to_retry = attempts_to_retry.filter(submitted_at__range=(start_datetime, end_datetime))
            log.info(
                f"In date range: `{start_datetime}` to `{end_datetime}`"
            )
    # Re-submit attempts_to_retry
    batch_size = options['batch_size']
    sleep_time = options['sleep_time']
    count = 0
    for index, attempt in enumerate(attempts_to_retry):
        log.info(f"Re-submitting submission #{index} (ID: {attempt.id}, User: {attempt.user})")
        # Set the attempt's status to 'must_retry' so that we can re-submit it
        if force_must_retry:
            attempt.status = 'must_retry'
        attempt.submit(copy_id_photo_from=attempt.copy_id_photo_from)
        log.info(f"Retry result: {attempt.status}")
        count += 1
        # Sleep between batches of <batch_size>
        if count == batch_size:
            time.sleep(sleep_time)
            count = 0
    log.info("Done resubmitting failed photo verifications")