def METHOD_NAME(targets: List[int], preds: List[int]):
    matrix = confusion_matrix(y_true=targets, y_pred=preds)
    data = Heatmap(
        z=matrix,
        text=matrix,
        texttemplate="%{text}",
        x=list(range(10)),
        y=list(range(10)),
    )
    layout = {
        "title": "Confusion Matrix",
        "xaxis": {"title": "Predicted value"},
        "yaxis": {"title": "Real value"},
    }
    return Figure(data=data, layout=layout)