from __future__ import annotations

from typing import Any


def normalize_pagination(pagination: dict[str, Any] | None) -> dict[str, Any]:
    if not pagination:
        return {}
    normalized: dict[str, Any] = {}
    for key, value in pagination.items():
        if key == "pageSize":
            normalized["page_size"] = value
        else:
            normalized[key] = value
    return normalized
