def create_txt_record(domain, token, account_number=None):
    """
    Create a TXT record for the given domain and token and return a change_id tuple

    :param domain: FQDN
    :param token: challenge value
    :param account_number:
    :return: tuple of domain/token
    """
    _check_conf()

    function = inspect.currentframe().f_code.co_name
    log_data = {
        "function": function,
        "fqdn": domain,
        "token": token,
        "account": account_number,
    }
    # Create new record
    answer = {"answer": [token]}
    # Get current records
    found = False
    records = _get_txt_records(domain)
    for each in records['answers']:
        if token in each['answer']:
            found = True
            break
    if not found:
        records['answers'].append(answer)
    log_data["records"] = records
    try:
        if 'id' in records:
            _patch_txt_records(domain, records)
        else:
            _patch_txt_records(domain, records, patch=False)
        log_data["message"] = "TXT record(s) successfully created"
        current_app.logger.debug(log_data)
    except Exception as err:
        capture_exception()
        log_data["Exception"] = err
        log_data["message"] = "Unable to create TXT record(s)"
        current_app.logger.debug(log_data)
    change_id = (domain, token)
    return change_id

    Create a TXT record for the given domain and token and return a change_id tuple

    :param domain: FQDN
    :param token: challenge value
    :param account_number:
    :return: tuple of domain/token
    
lemur/plugins/lemur_acme/nsone.py