from typing import Any, Dict, List def get_charts_summary_top_market(items: List[Dict[str, Any]]) -> str: return sorted(items, key=lambda i: i["chart_meta"]["rank"])[0]["chart_meta"]["country_code"]