class_docstr: TabPy application class for keeping context like settings, state, etc.
code: def _get_arrow_server(self, config):
      verify_client = None
      tls_certificates = None
      scheme = "grpc+tcp"
      if config[SettingsParameters.TransferProtocol] == "https":
          scheme = "grpc+tls"
          tls_certificates = self._get_tls_certificates(config)
  
      host = "0.0.0.0"
      port = config.get(SettingsParameters.ArrowFlightPort)
      location = "{}://{}:{}".format(scheme, host, port)
  
      auth_middleware = None
      if (
          "authentication"
          in config[SettingsParameters.ApiVersions]["v1"]["features"]
      ):
          _, creds = parse_pwd_file(
              config[ConfigParameters.TABPY_PWD_FILE]
          )
          auth_middleware = {
              "basic": BasicAuthServerMiddlewareFactory(creds)
          }
  
      server = pa.FlightServer(
          host,
          location,
          tls_certificates=tls_certificates,
          verify_client=verify_client,
          auth_handler=NoOpAuthHandler(),
          middleware=auth_middleware,
      )
      return server
  
imports: import concurrent.futures
  import configparser
  import logging
  import multiprocessing
  import os
  import shutil
  import signal
  import sys
  import _thread
  import tornado
  from tornado.http1connection import HTTP1Connection
  import tabpy
  import tabpy.tabpy_server.app.arrow_server
  from tabpy.tabpy import __version__
  from tabpy.tabpy_server.app.app_parameters import ConfigParameters, SettingsParameters
  from tabpy.tabpy_server.app.util import parse_pwd_file
  from tabpy.tabpy_server.handlers.basic_auth_server_middleware_factory import BasicAuthServerMiddlewareFactory
  from tabpy.tabpy_server.handlers.no_op_auth_handler import NoOpAuthHandler
  from tabpy.tabpy_server.management.state import TabPyState
  from tabpy.tabpy_server.management.util import _get_state_from_file
  from tabpy.tabpy_server.psws.callbacks import init_model_evaluator, init_ps_server
  from tabpy.tabpy_server.psws.python_service import PythonService, PythonServiceHandler
  from tabpy.tabpy_server.handlers import EndpointHandler, EndpointsHandler, EvaluationPlaneHandler, EvaluationPlaneDisabledHandler, QueryPlaneHandler, ServiceInfoHandler, StatusHandler, UploadDestinationHandler
label_desc: Use image node_id 3 for calling the TabPyApp obj's underlying member method code with example usage: obj._get_arrow_server(config) and returns: server