input: Write a function to shuffle a list of numbers using Python's `random.shuffle` method. The function should take a list as input and return the shuffled list. If the input list is empty, the function should return the empty list.
  def shuffle_list(nums):
      if not nums:
          return nums
      random.shuffle(nums)
      return nums
  
  assert shuffle_list([1, 2, 3, 4, 5]) != [1, 2, 3, 4, 5]
  assert shuffle_list([1, 2, 3]) != [1, 2, 3]
  assert shuffle_list([]) == []
  assert shuffle_list([5, 4, 3, 2, 1]) != [5, 4, 3, 2, 1]
output: def shuffle_list(nums):
      if not nums:
          return nums
      random.shuffle(nums)
      return nums