import inspect


def accepts_kwargs(function):
    """
    Determine whether or not the provided function accepts arbritrary keyword arguments.

    :param function: The function to look for **kwargs in
    :type function: <class 'function'>

    :rtype: bool
    :returns: True if the function signature contains **kwargs. False otherwise.
    """
    return "**kwargs" in str(inspect.signature(function))