input: Write a function to remove all occurrences of an item from a list. If the list or the item is not provided, return an empty list.
  def removeItem(list, item):
      # check if the list is empty or the item is not provided
      if not list or item is None:
          return []
      # loop through the list and remove the item
      return [i for i in list if i != item]
  assert removeItem([1, 2, 3, 4, 2, 5, 2], 2) == [1, 3, 4, 5]
  assert removeItem([], 2) == []
  assert removeItem([1, 2, 3, 4, 5], None) == []
  assert removeItem([1, 2, 3, 2, 4, 2, 5], 2) == [1, 3, 4, 5]
  assert removeItem([1, 2, 3, 4, 5], 6) == [1, 2, 3, 4, 5]
output: def removeItem(list, item):
      if not list or item is None:
          return []
      return [i for i in list if i != item]