from typing import List
from typing import Dict
from typing import Any


def _sort_keywords_for_gpc_by_descending_weight(
    keywords_for_gpc: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
  """Sorts keywords_for_gpc by their weight values in descending order."""
  return sorted(keywords_for_gpc, key=lambda x: x['weight'], reverse=True)