input: Write a function to shuffle a list of numbers. If the input list is empty, the function should return an empty list.
  def shuffle_list(nums):
   if not nums:
   return []
   import random
   random.shuffle(nums)
   return nums
  
  assert shuffle_list([1, 2, 3, 4, 5]) != [1, 2, 3, 4, 5]
  assert shuffle_list([]) == []
  assert shuffle_list([7, 2, 9, 4]) != [7, 2, 9, 4]
  assert shuffle_list([10]) == [10]
output: def shuffle_list(nums):
      if not nums:
          return []
      import random
      random.shuffle(nums)
      return nums