def METHOD_NAME(priority, people, data):
    res = []
    data = (
        utils.get_config("escalation", priority)
        if data is None
        else data.get(priority, {})
    )
    week = utils.get_weekdays()
    for r, sd in data.items():
        res.append(
            Step(
                Range.from_string(r),
                Supervisor(sd["supervisor"], people),
                {week[d] for d in sd["days"]},
            )
        )
    return sorted(res)