How to define contour levels is irregular intervals for a contour plot type "level"

Hi everyone, i have same problem like this thread https://community.plotly.com/t/custom-contour-levels-for-a-contour-plot
The problem is : Is there a definitive way to plot custom contour levels yet? I’m attempting to plot some precipitation data and therefore need irregular intervals. If not, how would I go about this using traces?
Go to detail, i have the : percentile_array = [0, 25, 40, 55, 75, 90, 97, 100], then i find value that be long to these percentile like this : levels = np.percentile(np.array(z), percentile_array ) ;
How to i define level for a contour plot type β€œlevel” by levels that is irregular intervals ?

Thank you for helping!