code: def quick_sort_recur(arr, first, last, iteration, simulation):
      if first < last:
          pos = partition(arr, first, last)
          # Start our two recursive calls
          if simulation:
              iteration = iteration + 1
              print("iteration", iteration, ":", *arr)
  
          _, iteration = quick_sort_recur(
              arr, first, pos - 1, iteration, simulation
          )
          _, iteration = quick_sort_recur(
              arr, pos + 1, last, iteration, simulation
          )
  
      return arr, iteration
  
label_desc: Use image node_id 2 for calling a global function with example usage: quick_sort_recur(arr, first, last, iteration, simulation) and returns: arr,  iteration