def METHOD_NAME(mocker, email, password, save):
    path = "openbb_terminal.core.session.session_model."
    mock_get_session = mocker.patch(path + "Hub.get_session")
    mock_save_session = mocker.patch(path + "Local.save_session")
    mock_get_session.return_value = TEST_SESSION
    session = session_model.create_session(email, password, save)
    assert session == TEST_SESSION
    mock_get_session.assert_called_once_with(email, password)
    if save and session:
        mock_save_session.assert_called_once_with(session)