def METHOD_NAME(
    nodes,
    count: int | None = None,
    has_next_page: bool = False,
) -> dict[str, dict[str, dict[str, dict[str, dict[str, str | bool] | int]]]]:
    """Create the GraphQL merge request response JSON."""
    return {
        "data": {
            "project": {
                "mergeRequests": {
                    "pageInfo": {"hasNextPage": has_next_page, "endCursor": "xxx"},
                    "count": len(nodes) if count is None else count,
                    "nodes": nodes,
                },
            },
        },
    }