code: def create_lut(cmap, n_colors=256, center=None):
      """Return a colormap suitable for setting as a LUT."""
      from .._3d import _get_cmap
  
      assert not (isinstance(cmap, str) and cmap == "auto")
      cmap = _get_cmap(cmap)
      lut = np.round(cmap(np.linspace(0, 1, n_colors)) * 255.0).astype(
          np.int64
      )
      return lut
  
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: create_lut(cmap, n_colors, center) and returns: lut