<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_subarray_sbi_ids(sub_array_id):
 """Return list of scheduling block Id's associated with the given sub_array_id """

    ids = []
    for key in sorted(DB.keys(pattern='scheduling_block/*')):
        config = json.loads(DB.get(key))
        if config['sub_array_id'] == sub_array_id:
            ids.append(config['id'])
    return ids