input: def convert_code(input_language: str, output_language: str, code: str) -> str:
      """ Converts the given code from the specified input programming language to the specified output programming language. 
      >>> convert_code('JavaScript', 'Python', "let arr = [1, 2, 3, 4, 5];\\narr.forEach(item => {console.log(item * 2);});")
      'arr = [1, 2, 3, 4, 5]\\nfor item in arr:\\n print(item * 2)'
      >>> convert_code('Python', 'JavaScript', "arr = [1, 2, 3, 4, 5]\\nfor item in arr:\\n print(item * 2)")
      'let arr = [1, 2, 3, 4, 5];\\narr.forEach(item => {console.log(item * 2);});'
      """
output:     if input_language == 'JavaScript' and output_language == 'Python':
          code = code.replace('let ', '')
          code = code.replace('arr.forEach(item => {console.log(', 'for item in arr:\n print(')
          code = code.replace(');});', ')')
          return code
      elif input_language == 'Python' and output_language == 'JavaScript':
          code = code.replace('arr = ', 'let arr = ')
          code = code.replace('for item in arr:\n print(', 'arr.forEach(item => {console.log(')
          code = code.replace(')', ');});')
          return code
      else:
          raise ValueError("Unsupported language conversion")