input: Write a function to remove all occurrences of the given element in a given array. If the element is not found in the array, return the original array. If the array is empty, return an empty array.
  
  def remove_element(arr, element):
      arr = [x for x in arr if x != element]
      return arr
  
  assert remove_element([2, 4, 5, 7, 4, 2], 4) == [2, 5, 7, 2]
  assert remove_element([1, 2, 3, 4, 5], 6) == [1, 2, 3, 4, 5]
  assert remove_element([], 4) == []
  assert remove_element([4, 4, 4, 4], 4) == []
output: def remove_element(arr, element):
      arr = [x for x in arr if x != element]
      return arr