code: def create_agreement(self, agreement_id, did, condition_ids, time_locks, time_outs,
                           consumer_address, account):
          
          logger.info(
              f'Creating agreement {agreement_id} with did={did}, consumer={consumer_address}.')
          tx_hash = self.send_transaction(
              'createAgreement',
              (agreement_id,
               did,
               condition_ids,
               time_locks,
               time_outs,
               consumer_address),
              transact={'from': account.address,
                        'passphrase': account.password}
          )
          receipt = self.get_tx_receipt(tx_hash)
          return receipt and receipt.status == 1
docs: Create the service agreement. Return true if it is created successfully.
  
          :param agreement_id: id of the agreement, hex str
          :param did: DID, str
          :param condition_ids: is a list of bytes32 content-addressed Condition IDs, bytes32
          :param time_locks: is a list of uint time lock values associated to each Condition, int
          :param time_outs: is a list of uint time out values associated to each Condition, int
          :param consumer_address: ethereum account address of consumer, hex str
          :param account: Account instance creating the agreement
          :return: bool