def _get_number_of_subtasks(total_num_items, items_per_task):
 (num_subtasks, remainder) = divmod(total_num_items, items_per_task)
 if remainder:
  num_subtasks += 1
 return num_subtasks

def _get_number_of_subtasks ( total_num_items , items_per_task ) : ( num_subtasks , remainder ) = divmod ( total_num_items , items_per_task ) if remainder : num_subtasks += 1 return num_subtasks
determines number of subtasks that would be generated by _generate_items_for_subtask .