code: def reverse_vowels(sentence):
      arr = [c for c in sentence]  # or just arr = list(sentence)
  
      vowels = {
          "a": True,
          "A": True,
          "e": True,
          "E": True,
          "i": True,
          "I": True,
          "o": True,
          "O": True,
          "u": True,
          "U": True,
      }
  
      left = 0
      right = len(arr) - 1
  
      while True:
          # find a vowel from left
          while left < right:
              if arr[left] in vowels:
                  break
              left += 1
  
          # find a vowel from right
          while left < right:
              if arr[right] in vowels:
                  break
              right -= 1
  
          if left >= right:
              # in this case, there are only 1 or 0 vowels
              # so this is the end of the algorithm, no need from more reversing
              break
  
          # swap the vowels
          arr[left], arr[right] = arr[right], arr[left]
  
          left += 1
          right -= 1
  
      return "".join(arr)
  
label_desc: Use image node_id 1 for calling a global function with example usage: reverse_vowels(sentence) and returns: str