input: Write a function to shuffle a list of numbers using Python's `random.shuffle()` function. Ensure that the shuffled list is returned and the original order is modified in place. If the input list is empty, return an empty list.
  
  def shuffle_list(nums):
      if len(nums) == 0:
          return []
      random.shuffle(nums)
      return nums
  
  assert shuffle_list([1, 2, 3, 4, 5])==[3, 5, 2, 4, 1]
  assert shuffle_list([5, 4, 3, 2, 1])==[2, 4, 1, 3, 5]
  assert shuffle_list([])==[]
  assert shuffle_list([10, 20, 30, 40])==[30, 10, 40, 20]
  assert shuffle_list([7, 7, 7, 7])==[7, 7, 7, 7]
output: def shuffle_list(nums):
      if len(nums) == 0:
          return []
      random.shuffle(nums)
      return nums