code: def get_flight(args, client, connection_args={}):
      if args.path:
          descriptor = pyarrow.flight.FlightDescriptor.for_path(
              *args.path
          )
      else:
          descriptor = pyarrow.flight.FlightDescriptor.for_command(
              args.command
          )
  
      info = client.get_flight_info(descriptor)
      for endpoint in info.endpoints:
          print("Ticket:", endpoint.ticket)
          for location in endpoint.locations:
              print(location)
              get_client = pyarrow.flight.FlightClient(
                  location, **connection_args
              )
              reader = get_client.do_get(endpoint.ticket)
              df = reader.read_pandas()
              print(df)
  
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 4 for calling a global function with example usage: get_flight(args, client, connection_args) without return types