def METHOD_NAME(name, kwargs):
    """Checks if the deprecated argument is in kwargs
    Raises warning, if present.
    Args:
        name: name of deprecated argument
        kwargs: keyword arguments dict
    """
    if name in kwargs:
        removed_warning(name)