input: Write a function to translate the given JavaScript code into Python. If the given input is a JavaScript code, the function should return the equivalent Python code. If the input is not a JavaScript code or is empty, the function should return "Invalid Input". 
  
  def translate_js_to_py(code):
   pass
  
  assert translate_js_to_py("let arr = [1, 2, 3, 4, 5]; arr.forEach(item => { console.log(item * 2); });") == "arr = [1, 2, 3, 4, 5]\nfor item in arr:\n print(item * 2)"
  assert translate_js_to_py("") == "Invalid Input"
  assert translate_js_to_py("let x = 5;") == "Invalid Input"
  assert translate_js_to_py("arr = [1, 2, 3, 4, 5]\nfor item in arr:\n print(item * 2)") == "Invalid Input"
  assert translate_js_to_py([]) == "Invalid Input"
  assert translate_js_to_py(None) == "Invalid Input"
output: def translate_js_to_py(code):
      if not isinstance(code, str) or not code.strip():
          return "Invalid Input"
      
      if "let" in code or "=>" in code or "console.log" in code:
          code = code.replace("let ", "")
          code = code.replace("=>", "")
          code = code.replace("console.log", "print")
          code = code.replace(";", "")
          code = code.replace("arr.forEach(item ", "for item in arr")
          code = code.replace("{", "")
          code = code.replace("}", "")
          return code
      
      return "Invalid Input"