input: Write a python function to generate a random password of length 8 where no two consecutive characters are vowels.
  assert len(generate_password()) == 8
  assert not any(generate_password()[i] in 'aeiou' and generate_password()[i+1] in 'aeiou' for i in range(7))
  assert isinstance(generate_password(), str)
output: import random
  import string
  
  def generate_password():
      vowels = 'aeiou'
      consonants = ''.join(set(string.ascii_lowercase) - set(vowels))
      password = []
      
      # Alternate between vowels and consonants
      for i in range(8):
          if i % 2 == 0:
              password.append(random.choice(consonants))
          else:
              password.append(random.choice(vowels))
      
      # Shuffle to ensure no pattern but still no consecutive vowels
      random.shuffle(password)
      
      # Make sure that the password has no consecutive vowels
      while any(password[i] in vowels and password[i + 1] in vowels for i in range(7)):
          random.shuffle(password)
      
      return ''.join(password)