input: from typing import List
  
  def shuffle_list(list: List[any]) -> List[any]:
      """ Shuffles a given list in place using the Fisher-Yates algorithm.
      >>> shuffle_list([1, 2, 3, 4, 5])
      [3, 2, 5, 1, 4]  # Example output, actual result may vary
      >>> shuffle_list(['apple', 'banana', 'cherry'])
      ['cherry', 'apple', 'banana']  # Example output, actual result may vary
      """
output:     import random
      for i in range(len(list) - 1, 0, -1):
          j = random.randint(0, i)
          list[i], list[j] = list[j], list[i]
      return list