from unittest.mock import Mock


def mock_session_ctx(*, global_args=None):
    """
    Create mock of session context.
    """
    sess_ctx = Mock()
    sess_ctx.globals = global_args if global_args else {}

    return sess_ctx