async function constructSessions(pretrained_model_name_or_path, names, options) {
    return Object.fromEntries(await Promise.all(
        Object.keys(names).map(async (name) => {
            const { buffer_or_path, session_options, session_config } = await getSession(pretrained_model_name_or_path, names[name], options);
            const session = await createInferenceSession(buffer_or_path, session_options, session_config);
            return [name, session];
        })
    ));
}
Helper function to create multiple InferenceSession objects.

@param {string} pretrained_model_name_or_path The path to the directory containing the model file.
@param {Record<string, string>} names The names of the model files to load.
@param {import('./utils/hub.js').PretrainedModelOptions} options Additional options for loading the model.
@returns {Promise<Record<string, any>>} A Promise that resolves to a dictionary of InferenceSession objects.
@private