code: def get_response(self, results):
          
          if results is None:
              return None
          for result in itertools.chain.from_iterable(results):
              if isinstance(result, BaseResponse):
                  return result
docs: Get response object from results.
  
          :param results: list
          :return: