@classmethod
def set_class_session(cls, **context_kwargs):
    """Create or use spark session/context for instances of this class

        See the input parameters of ``set_context`` and ``set_session``.
        """
    inst = cls(True, (), context_kwargs)
    inst.set_context(**context_kwargs)
    inst.set_session(**context_kwargs)
