def experiment_config_from_model_group_id(db_engine, model_group_id):
    """Get original experiment config from model_id 
    Args:
            db_engine (sqlalchemy.db.engine)
            model_id (int) The id of a given model in the database

    Returns: (dict) experiment config
    """
    get_experiment_query = '''
    select triage_runs.id as run_id, experiments.config
    from triage_metadata.triage_runs
    join triage_metadata.models
    on (triage_runs.id = models.built_in_triage_run)
    join triage_metadata.experiments
    on (experiments.experiment_hash = triage_runs.run_hash and triage_runs.run_type='experiment')
    where model_group_id = %s
    order by triage_runs.start_time desc
    '''
    (run_id, config) = db_engine.execute(get_experiment_query, model_group_id).first()
    return run_id, config