input: Write a function to rewrite the given JavaScript code in Python. The function should iterate through an array `arr` and print each item multiplied by 2. If the input is an empty array, the function should not print anything.
  def rewrite_js_to_python(arr):
      if len(arr) == 0:
          return
      for item in arr:
          print(item * 2)
  
  assert rewrite_js_to_python([1, 2, 3, 4, 5])==None
  assert rewrite_js_to_python([])==None
output: def rewrite_js_to_python(arr):
      if len(arr) == 0:
          return
      for item in arr:
          print(item * 2)