input: Write a function to create a Python function that shuffles a list of numbers. The function should use the random module to shuffle the list in place and then return it. 
  
  import random
  
  def shuffle_list(nums):
   random.shuffle(nums)
   return nums
  
  assert shuffle_list([1, 2, 3, 4, 5]) == [3, 5, 2, 4, 1]
  assert shuffle_list([10, 20, 30]) == [20, 30, 10]
  assert shuffle_list([7, 8, 9, 10]) == [9, 10, 8, 7]
  assert shuffle_list([]) == []
  assert shuffle_list([1]) == [1]
output: def shuffle_list(nums):
   random.shuffle(nums)
   return nums