class_docstr: FlaskHelper is a class for common Flask utilities used in dashboards.
class_docstr_tok: ["FlaskHelper","is","a","class","for","common","Flask","utilities","used","in","dashboards","."]
code: def stop(self):
      if self.server.started:
          try:
              self.server.stop()
          except Exception as e:
              warning_msg = "Caught exceptions when closing server: {}"
              warning_msg = warning_msg.format(e)
              warnings.warn(warning_msg, UserWarning)
  
file_path: responsible-ai-toolbox/rai_core_flask/rai_core_flask/flask_helper.py
imports: import atexit
  import logging
  import socket
  import threading
  import time
  import uuid
  import warnings
  from flask import Flask
  from flask_socketio import SocketIO
  from gevent.pywsgi import WSGIServer
  from .environment_detector import build_environment
  from .environments.credentialed_vm_environment import CREDENTIALED_VM
  from .environments.public_vm_environment import PUBLIC_VM
label_desc: Use image node_id 4 for calling the FlaskHelper obj's underlying member method code with example usage: obj.stop() without return types