from typing import Tuple
from typing import Any
from typing import List


def unpack_response(response: dict) -> Tuple[Any, List[str]]:
    """Unpack response from dictionary and fetch ranking and keywords."""
    assert isinstance(response, dict), "Empty response. Try again."

    rankings = [*response[[*response][0]]]
    keywords = [*response]
    return rankings, keywords