Purpose: rank partner countries for one reporter, period and flow direction by quantity, returning rank,partner, quantity, value, unit price and share. Guidelines: reporter (ISO3 alpha), period (YYYY) and flow (X =export, M = import) are required; raise top_n above the default 10 (max 50) only when a longer tail is needed.Limits: one reporter-period-flow combination per call; World aggregate rows are excluded; shares are computedwithin the returned set, not against global trade. Ex: get_trade_partner_ranking(reporter='CHN', period='2025',flow='X'), get_trade_partner_ranking(reporter='USA', period='2024', flow='M', top_n=20).