code: def get_saved_migrations_versions(self) -> list[str]:
      return DatabaseMigration.objects().distinct("version")
  
file_path: datasets-server/jobs/mongodb_migration/src/mongodb_migration/plan.py
imports: import logging
  from mongodb_migration.database_migrations import DatabaseMigration
  from mongodb_migration.migration import Migration
label_desc: Use image node_id 2 for calling the Plan obj's underlying member method code with example usage: obj.get_saved_migrations_versions() and returns: DatabaseMigration