def METHOD_NAME(name, commit):
    """Generate @id field for DatasetTag."""
    host = "localhost"
    if project_context.has_context():
        host = project_context.remote.host or host
    host = os.environ.get("RENKU_DOMAIN") or host
    name = f"{name}@{commit}"
    return urljoin(f"https://{host}", posixpath.join("/dataset-tags", quote(name, safe="")))