def METHOD_NAME(_domain, _path, _url):
    if "creativecommons.org" not in _domain:
        logging.warning(
            f"The license for the following work -> {_url} is not issued by"
            f"Creative Commons."
        )
        return [None, None]
    pattern = re.compile(r"/(licenses|publicdomain)/([a-z\-?]+)/(\d\.\d)/?(.*?)")
    if pattern.match(_path.lower()):
        result = re.search(pattern, _path.lower())
        license = result.group(2).lower().strip()
        version = result.group(3).strip()
        if result.group(1) == "publicdomain":
            if license == "zero":
                license = "cc0"
            elif license == "mark":
                license = "pdm"
            else:
                logging.warning("License not detected!")
                return [None, None]
        elif license == "":
            logging.warning("License not detected!")
            return [None, None]
        return [license, version]
    return [None, None]