input: Write a function to translate the given JavaScript code into Python code. The JavaScript code iterates over an array and prints each element multiplied by 2. If the array is empty, the function should return an empty string.
  
  def translate_to_python(js_code):
      arr = [1, 2, 3, 4, 5]
      for item in arr:
          print(item * 2)
      return ""
  
  assert translate_to_python("let arr = [1, 2, 3, 4, 5];\narr.forEach(item => { console.log(item * 2); });")==""
  assert translate_to_python("let arr = [10, 20, 30];\narr.forEach(item => { console.log(item * 2); });")==""
  assert translate_to_python("let arr = [];\narr.forEach(item => { console.log(item * 2); });")==""
output: def translate_to_python(js_code):
      arr = eval(js_code.split("=")[1].split(";")[0].strip())
      if not arr:
          return ""
      for item in arr:
          print(item * 2)
      return ""