def METHOD_NAME(self, expected_args, kwargs):
    if self.kw_wildcard_name:
        return
    unexpected_kwargs = set(kwargs) - set(expected_args)
    if unexpected_kwargs:
        raise SignatureError(
            "{} got unexpected kwarg(s): {}".format(
                self.name, sorted(unexpected_kwargs)
            )
        )