input: 
  def translate_code(source_language: str, code: str, target_language: str) -> str:
      """ Translate the given code snippet from one programming language to another.
      The code is provided in the source language and you need to return it in the
      target language.
      >>> translate_code('JavaScript', "let arr = [1, 2, 3, 4, 5];\\n\\narr.forEach(item => {\\n console.log(item * 2);\\n});", 'Python')
      "arr = [1, 2, 3, 4, 5]\\n\\nfor item in arr:\\n print(item * 2)"
      """
  
output:     if source_language == 'JavaScript' and target_language == 'Python':
          code = code.replace('let ', '')
          code = code.replace(';', '')
          code = code.replace('arr.forEach(item => {', 'for item in arr:')
          code = code.replace('});', '')
          code = code.replace('console.log(', 'print(')
          return code
      else:
          raise ValueError("Unsupported translation")