input: Write a function to rewrite the given JavaScript code in Python. The function should take the array as input and print each item of the array multiplied by 2.
  assert rewrite_js_to_py([1, 2, 3, 4, 5])=="""arr = [1, 2, 3, 4, 5]
  for item in arr:
   print(item * 2)"""
  assert rewrite_js_to_py([6, 7, 8, 9, 10])=="""arr = [6, 7, 8, 9, 10]
  for item in arr:
   print(item * 2)"""
  assert rewrite_js_to_py([2, 4, 6, 8, 10])=="""arr = [2, 4, 6, 8, 10]
  for item in arr:
   print(item * 2)"""
  assert rewrite_js_to_py([])=="""arr = []
  for item in arr:
   print(item * 2)"""
  assert rewrite_js_to_py([-1, -2, -3, -4, -5])=="""arr = [-1, -2, -3, -4, -5]
  for item in arr:
   print(item * 2)"""
output: def rewrite_js_to_py(arr):
      result = f"arr = {arr}\nfor item in arr:\n print(item * 2)"
      return result