code: def _handle_results(self, success, result, expected_failures=tuple()):
          
          if not success and isinstance(result, expected_failures):
              return []
          elif success:
              return dict_factory(*result.results) if result else []
          else:
              raise result
docs: Given a bool and a ResultSet (the form returned per result from
          Connection.wait_for_responses), return a dictionary containing the
          results. Used to process results from asynchronous queries to system
          tables.
  
          ``expected_failures`` will usually be used to allow callers to ignore
          ``InvalidRequest`` errors caused by a missing system keyspace. For
          example, some DSE versions report a 4.X server version, but do not have
          virtual tables. Thus, running against 4.X servers, SchemaParserV4 uses
          expected_failures to make a best-effort attempt to read those
          keyspaces, but treat them as empty if they're not found.
  
          :param success: A boolean representing whether or not the query
          succeeded
          :param result: The resultset in question.
          :expected_failures: An Exception class or an iterable thereof. If the
          query failed, but raised an instance of an expected failure class, this
          will ignore the failure and return an empty list.