input: def rewrite_code(arr: List[int]) -> List[int]:
      """ Rewrite the given JavaScript code to print each item in the list after doubling it.
      >>> rewrite_code([1, 2, 3, 4, 5])
      [2, 4, 6, 8, 10]
      """
      for item in arr:
          print(item * 2)
output:     return [item * 2 for item in arr]