I assume that roc_curve() computes fpr and tpr for each value of thresholds. But the following code shows that fpr and thresholds have different dimensions.
roc_curve()