docs: def consume_service(service_agreement_id, service_endpoint, account, files,
                          destination_folder, index=None):
          """
          Call the brizo endpoint to get access to the different files that form the asset.
  
          :param service_agreement_id: Service Agreement Id, str
          :param service_endpoint: Url to consume, str
          :param account: Account instance of the consumer signing this agreement, hex-str
          :param files: List containing the files to be consumed, list
          :param index: Index of the document that is going to be downloaded, int
          :param destination_folder: Path, str
          :return: True if was downloaded, bool
          """
          signature = Keeper.get_instance().sign_hash(service_agreement_id, account)
          if index is not None:
              assert isinstance(index, int), logger.error('index has to be an integer.')
              assert index >= 0, logger.error('index has to be 0 or a positive integer.')
              assert index < len(files), logger.error(
                  'index can not be bigger than the number of files')
              consume_url = Brizo._create_consume_url(service_endpoint, service_agreement_id, account,
                                                      None, signature, index)
              logger.info(f'invoke consume endpoint with this url: {consume_url}')
              response = Brizo._http_client.get(consume_url, stream=True)
              file_name = Brizo._get_file_name(response)
              Brizo.write_file(response, destination_folder, file_name)
          else:
              for i, _file in enumerate(files):
                  consume_url = Brizo._create_consume_url(service_endpoint, service_agreement_id,
                                                          account, _file,
                                                          signature, i)
                  logger.info(f'invoke consume endpoint with this url: {consume_url}')
                  response = Brizo._http_client.get(consume_url, stream=True)
                  file_name = Brizo._get_file_name(response)
                  Brizo.write_file(response, destination_folder, file_name)