code: def get_subarray_sbi_ids(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
docs: Return list of scheduling block Id's associated with the given
      sub_array_id