<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def build_queue(action, action_space, build_queue_id):
 """Cancel a unit in the build queue."""

  del action_space
  action.action_ui.production_panel.unit_index = build_queue_id