input: Write a python function to transform a sentence based on a given dictionary of words.
  assert transform_sentence("I went to the store.", {"Noun": ["store"], "Verb": ["shopped"]}) == "I shopped to the store."
  assert transform_sentence("She eats an apple.", {"Noun": ["apple"], "Verb": ["consumes"]}) == "She eats an apples."
  assert transform_sentence("He saw a dog.", {"Noun": ["dog"], "Verb": ["spotted"]}) == "He spotted a dogs."
output: def transform_sentence(sentence, word_dict):
      words = sentence.split()
      transformed_words = []
      
      for word in words:
          if word in word_dict.get("Noun", []):
              transformed_words.append(word + 's')
          elif word in word_dict.get("Verb", []):
              transformed_words.append(word_dict["Verb"][0])
          else:
              transformed_words.append(word)
      
      return ' '.join(transformed_words)