@staticmethod
def set_kwargs_flag(kwargs, key):
    """
        set the flag in kwargs if it has not yet been set.

        :param kwargs: keyword arguments
        :type kwargs: dict
        :param key: key
        :type key: str
        """
    if key is not None:
        if key not in kwargs:
            kwargs[key] = True
