from typing import Tuple
from typing import Dict


def test_arbitrary_keyword_arguments() -> None:
    """Arbitrary number of keyword arguments, parameter of the form `**name`."""

    def arbitrary_keyword_arguments(
        first: int, **seconds: int
    ) -> Tuple[int, Dict[str, int]]:
        return (first, seconds.copy())

    first_arg, args_dict = arbitrary_keyword_arguments(1, second=2, third=3)
    assert first_arg == 1

    assert isinstance(args_dict, dict)
    assert len(args_dict) == 2
    assert args_dict["second"] == 2
    assert args_dict["third"] == 3