input: Write a function to translate JavaScript code to Python code. The JavaScript code iterates through an array, multiplies each element by 2, and prints the result. If the given JavaScript code is empty, return an empty string.
  assert translate_js_to_python("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)"
  assert translate_js_to_python("")==""
output: def translate_js_to_python(js_code):
      if not js_code:
          return ""
      lines = js_code.split('\n')
      array_line = lines[0]
      array_name = array_line.split('=')[0].strip()
      array_value = array_line.split('=')[1].strip().strip(';')
      python_code = f"{array_name} = {array_value}\n\nfor item in {array_name}:\n print(item * 2)"
      return python_code