input: Write a function to remove all occurrences of a specified item from a given list. Return the modified list after removing all instances of the specified item.
  
  def removeItem(list, item):
      # create a new list to store elements that are not the item to remove
      new_list = [i for i in list if i != item]
      # return the new list
      return new_list
  
  # Test cases
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 2) == [1, 3, 4, 5]
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 1) == [2, 3, 4, 2, 5, 2]
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 5) == [1, 2, 3, 4, 2, 2]
  assert removeItem([], 2) == []
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 10) == [1, 2, 3, 4, 2, 5, 2]
output: def removeItem(list, item):
      new_list = [i for i in list if i != item]
      return new_list