code: def list_flights(self, context, criteria):
      for key, table in self.flights.items():
          if key[1] is not None:
              descriptor = pyarrow.flight.FlightDescriptor.for_command(
                  key[1]
              )
          else:
              descriptor = pyarrow.flight.FlightDescriptor.for_path(
                  *key[2]
              )
  
          yield self._make_flight_info(key, descriptor, table)
  
imports: import ast
  import logging
  import threading
  import time
  import uuid
  import pyarrow
  import pyarrow.flight
label_desc: Use image node_id 4 for calling the FlightServer obj's underlying member method code with example usage: obj.list_flights(context, criteria) without return types