def _check_kwargs(passed, valid_keywords):
    """ Check that each string in passed is in valid and notify
  of problems.

  Args:
    passed (List[str]): In practice, the keywords that were
        passed to the function, class, method, etc. from which
        `_check_kwargs` was called.
    valid_keywords (List[str]): The valid keywords for said
        function, class, method, etc.
  """
    for keyword in passed:
        assert keyword in valid_keywords, '{} is not a valid argument keyword'.format(
            keyword)
