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 'name' and a 'grade'. The table should be formatted such that the names are left-aligned and the grades are right-aligned. If the list 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}]) == None
  assert print_grade_table([]) == None
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'.ljust(max_name_length)} | Grade")
      print("-" * (max_name_length + 7))
      
      for student in students:
          print(f"{student['name'].ljust(max_name_length)} | {student['grade']:>5}")