Given this array, how would you get the largest value and pop it out?
Implement pop_largest(nums). Return a two-element list containing the largest value and the modified input list. If multiple elements share the largest value, remove the first occurrence. For an empty list, return [None, []].
Input: a list of integers. Output: [largest_value, remaining_list].
def pop_largest(nums):