input: Write a function to encode a message using the given encoding scheme.
  assert encode_message("hello", 3, 5) == "mjqqt"
  assert encode_message("world", 3, 5) == "zruog"
  assert encode_message("test", 1, 2) == "vguv"
output: def encode_message(message, shift1, shift2):
      encoded_chars = []
      shift = shift1
      for char in message:
          if char.isalpha():
              base = ord('a') if char.islower() else ord('A')
              new_char = chr((ord(char) - base + shift) % 26 + base)
              encoded_chars.append(new_char)
              shift = shift2 if shift == shift1 else shift1
          else:
              encoded_chars.append(char)
      return ''.join(encoded_chars)