def METHOD_NAME(self, rtype, name, content):
    ttl = self._get_lexicon_option("ttl")
    records = list(
        filter(
            lambda x: x["content"] == content
            and x["type"] == rtype
            and self._relative_name(x["name"]) == self._relative_name(name),
            self.list_records(rtype, name, content),
        )
    )
    if len(records) > 0:
        LOGGER.debug(
            "create_record (ignored, duplicate): %s %s %s", rtype, name, content
        )
        return True
    data = {
        "type": rtype,
        "source": self._relative_name(name),
        "target": content,
    }
    if ttl:
        data["ttl"] = ttl
    result = self._post(f"/1/domain/{self.domain_id}/dns/record", data)
    LOGGER.debug("create_record: %s", result["data"])
    return True