input: from typing import List
  
  def expand_list(list: List[int]) -> List[int]:
      """The function is intended to double the size of the given list by iterating through its elements. 
      The original list should be copied to avoid modifying the list while iterating over it. 
      >>> expand_list([1, 2, 3])
      [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3]
      >>> expand_list([4, 5])
      [4, 5, 4, 5, 4, 5, 4, 5]
      """
      list_copy = list[:]   # make a copy of the list
      for item in list_copy:
          list *= 2
      return list
output:     list_copy = list[:]   # make a copy of the list
      for item in list_copy:
          list.append(item)
      return list