code: def __init__(self, host="localhost", port=5005):
      if isinstance(port, float):
          # Because R is looser with integer vs. float
          port = int(port)
      location = "grpc+tcp://{}:{}".format(host, port)
      super(DemoFlightServer, self).__init__(location)
      self.flights = {}
      self.host = host
  
file_path: arrow/r/inst/demo_flight_server.py
imports: import ast
  import threading
  import time
  import pyarrow
  import pyarrow.flight
label_desc: Use image node_id 1 to create a new DemoFlightServer object from inherited base classes: pyarrow.flight with example: obj = DemoFlightServer(host, port)