def METHOD_NAME(self):
    self.client.start_session.side_effect = Exception('some exception')
    params = {}
    with self.assertRaisesRegex(Exception, 'some exception'):
        self.caller.invoke('ssm', 'StartSession', params, mock.Mock())