input: Write a function to rewrite the given JavaScript code in Python. The function should iterate through the array and print each element multiplied by 2.
  
  def rewrite_js_to_python():
   arr = [1, 2, 3, 4, 5]
   for item in arr:
    print(item * 2)
  
  assert rewrite_js_to_python()
output: def rewrite_js_to_python():
      arr = [1, 2, 3, 4, 5]
      for item in arr:
          print(item * 2)