def batch_create_indexes(index_settings_with_name_list: List[dict],
                         marqo_config: config.Config = Depends(get_config)):
    """An internal API used for testing processes. Not to be used by users."""
    # TODO this a temporary fix due to the mixed use of pydantic v1 and v2.
    #  IndexSettingsWithName can be injected after migrated to v2
    index_settings = [parse_request_object(IndexSettingsWithName, settings) for settings in index_settings_with_name_list]

    marqo_index_requests = [settings.to_marqo_index_request(settings.indexName) for settings in index_settings]

    marqo_config.index_management.batch_create_indexes(marqo_index_requests)

    return JSONResponse(
        content={
            "acknowledged": True,
            "index_names": [settings.indexName for settings in index_settings]
        },
        status_code=200
    )
An internal API used for testing processes. Not to be used by users.
src/marqo/tensor_search/api.py