code: def validate(self) -> None:
      logging.info("Check that the indexes do not exist anymore")
  
      db = get_db(QUEUE_MONGOENGINE_ALIAS)
      collection = db[QUEUE_COLLECTION_JOBS]
      index_names = get_index_names(
          index_information=collection.index_information()
      )
      if len(index_names) > 0:
          raise ValueError(f"Found indexes: {index_names}")
  
file_path: datasets-server/jobs/mongodb_migration/src/mongodb_migration/migrations/_20230516101600_queue_delete_index_without_revision.py
imports: import logging
  from collections.abc import Mapping
  from typing import Any
  from libcommon.constants import QUEUE_COLLECTION_JOBS, QUEUE_MONGOENGINE_ALIAS
  from mongoengine.connection import get_db
  from mongodb_migration.migration import IrreversibleMigrationError, Migration
label_desc: Use image node_id 3 for calling the MigrationQueueDeleteIndexWithoutRevision obj's underlying member method code with example usage: obj.validate() without return types