You need to import the function from the package too:
import PlotUtils: palette
palette is definitely exported by it.
Seems it was once reexported by Plots, but not anymore. The example needs updating. Like cormullion says, open an issue with SankeyPlots.jl, or better yet, make a PR to fix the documentation if you can.