ensure_valid_colormap/2
ensure_valid_colormap(+Colormap, +Goal)
Colormap is a valid colormap. If it's not, an error message mentioning Goal is printed, and execution is aborted.