input: Write a function to print a formatted table of grades for a given set of students. The function should accept a list of dictionaries where each dictionary contains a student's name and grade. The output should be a formatted table with proper alignment for names and grades. If the list of students is empty, the function should print an appropriate message.
  assert print_grade_table([{'name': "John", 'grade': 92}, {'name': "Alice", 'grade': 95}, {'name': "Bob", 'grade': 87}])
  assert print_grade_table([])
output: def print_grade_table(students):
      if not students:
          print("No students to display.")
          return
      
      max_name_length = max(len(student['name']) for student in students)
      print(f"{'Name':<{max_name_length}} | Grade")
      print("-" * (max_name_length + 3) + "|-----")
      
      for student in students:
          print(f"{student['name']:<{max_name_length}} | {student['grade']}")