input: Write a python function to retrieve all comments from the Comment model and return them as a list of dictionaries.
  assert get_comments() == []
  # Insert a comment for testing
  new_comment = Comment(name="Alice", comment="Hello, World!")
  db.session.add(new_comment)
  db.session.commit()
  assert get_comments() == [{"name": "Alice", "comment": "Hello, World!"}]
  new_comment2 = Comment(name="Bob", comment="Hi there!")
  db.session.add(new_comment2)
  db.session.commit()
  assert get_comments() == [{"name": "Alice", "comment": "Hello, World!"}, {"name": "Bob", "comment": "Hi there!"}]
output: def get_comments():
      comments = Comment.query.all()
      return [{"name": comment.name, "comment": comment.comment} for comment in comments]