code: def do_action(args, client, connection_args={}):
      try:
          buf = pyarrow.allocate_buffer(0)
          action = pyarrow.flight.Action(args.action_type, buf)
          print("Running action", args.action_type)
          for result in client.do_action(action):
              print("Got result", result.body.to_pybytes())
      except pyarrow.lib.ArrowIOError as e:
          print("Error calling action:", e)
  
file_path: arrow/python/examples/flight/client.py
imports: import argparse
  import sys
  import pyarrow
  import pyarrow.flight
  import pyarrow.csv
label_desc: Use image node_id 2 for calling a global function with example usage: do_action(args, client, connection_args) without return types