code: def do_action(self, context, action):
      if action.type == "clear":
          raise NotImplementedError(
              "{} is not implemented.".format(action.type)
          )
      elif action.type == "healthcheck":
          pass
      elif action.type == "shutdown":
          yield pyarrow.flight.Result(pyarrow.py_buffer(b"Shutdown!"))
          # Shut down on background thread to avoid blocking current
          # request
          threading.Thread(target=self._shutdown).start()
      else:
          raise KeyError("Unknown action {!r}".format(action.type))
  
file_path: arrow/python/examples/flight/server.py
imports: import argparse
  import ast
  import threading
  import time
  import pyarrow
  import pyarrow.flight
label_desc: Use image node_id 9 for calling the FlightServer obj's underlying member method code with example usage: obj.do_action(context, action) without return types