def _migrate_collection_to_latest_schema(versioned_collection):
 collection_schema_version = versioned_collection['schema_version']
 if (not (1 <= collection_schema_version <= feconf.CURRENT_COLLECTION_SCHEMA_VERSION)):
  raise Exception(('Sorry, we can only process v1-v%d collection schemas at present.' % feconf.CURRENT_COLLECTION_SCHEMA_VERSION))

def _migrate_collection_to_latest_schema ( versioned_collection ) : collection_schema_version = versioned_collection [ 'schema_version' ] if ( not ( 1 <= collection_schema_version <= feconf . CURRENT_COLLECTION_SCHEMA_VERSION ) ) : raise Exception ( ( 'Sorry, we can only process v1-v%d collection schemas at present.' % feconf . CURRENT_COLLECTION_SCHEMA_VERSION ) )
holds the responsibility of performing a step-by-step .