input: from typing import List
  
  def removeItem(list: List, item: any) -> List:
      """
      Remove all occurrences of an item from the given list.
      >>> removeItem([1, 2, 3, 4, 2, 5, 2], 2)
      [1, 3, 4, 5]
      """
      for i in list[:]:
          if i == item:
              list.remove(i)
      return list
output:     for i in list[:]:
          if i == item:
              list.remove(i)
      return list