input: Write a function to rewrite the given JavaScript code in Python. The JavaScript code initializes an array `arr` with values `[1, 2, 3, 4, 5]` and logs each item multiplied by 2 to the console. Return the Python equivalent of this code.
  
  assert rewrite_code("let arr = [1, 2, 3, 4, 5];\narr.forEach(item => { console.log(item * 2); });") == "arr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)"
output: arr = [1, 2, 3, 4, 5]
  
  for item in arr:
   print(item * 2)