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 run(self):
      ip = LOCALHOST
      # Note: for credentialed or public VM use the private IP address
      if self.env_name in VM_ENVS:
          host_name = socket.gethostname()
          ip = socket.gethostbyname(host_name)
      logger = logging.getLogger("wsgiserver")
      logger.setLevel(logging.ERROR)
      self.server = WSGIServer((ip, self.port), self.app, log=logger)
      self.app.config["server"] = self.server
      self.socketio.run(self.app, host=ip, port=self.port)
      self.server.serve_forever()
  
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 3 for calling the FlaskHelper obj's underlying member method code with example usage: obj.run() without return types