def _assert_stringy(**kwargs):
    """
    `_assert_stringy(arg1=some_value, arg2=other_value...)`

    Raise TypeError when a value in the kwargs is not stringy or is empty, displaying the keyword name in the error
    
    A convenience check. A number of APIs in this file must return None on bad input,
    but we can still do type checks to catch programming errors.
    """
    for label, s in kwargs.items():
        if type(s) not in (str, bytes) or len(s) == 0:
            raise TypeError('{label} {s!r} must be str/bytes and non-empty'
                .format(label=label, s=s))
