input: 
  def rewrite_in_python(code: str) -> str:
      """Given a JavaScript code snippet as a string, rewrite the code in Python.
      The code snippet typically involves simple array operations.
      >>> rewrite_in_python("""let arr = [1, 2, 3, 4, 5];
      
      arr.forEach(item => {
       console.log(item * 2);
      });""")
      'arr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)'
      """
  
output:     arr = eval(code.split('=')[1].split(';')[0].strip())
      result = []
      for line in code.split('\n'):
          if 'forEach' in line:
              func_body = line.split('=>')[1].strip()
              result.append(f"for item in arr:\n print({func_body})")
          else:
              result.append(line)
      return '\n'.join(result)