from typing import Any
from typing import Optional


def _assert_no_invalid_kwargs(kwargs: Any) -> Optional[TypeError]:
    """Check that kwargs of a function contain no unexpected arguments."""
    if '_ARGS' in kwargs:
        return TypeError('The arguments of the function call include "_ARGS" which is '
                         'a placeholder for positional arguments in a condition.')

    if '_KWARGS' in kwargs:
        return TypeError('The arguments of the function call include "_KWARGS" which is '
                         'a placeholder for keyword arguments in a condition.')

    return None