Create a program in Python to remove the duplicates from a given array.
[1, 2, 5, 7, 1, 8, 5, 9, 8]
def remove_duplicates(arr):
  res = []
  for i in arr: 
    if i not in res: 
      res.append(i)
  return res