code: def make_linear_colorscale(colors):
      """
      Makes a list of colors into a colorscale-acceptable form
  
      For documentation regarding to the form of the output, see
      https://plot.ly/python/reference/#mesh3d-colorscale
      """
      scale = 1.0 / (len(colors) - 1)
      return [[i * scale, color] for i, color in enumerate(colors)]
  
imports: from numbers import Number
  import plotly.exceptions
  import plotly.colors
  from plotly.graph_objs import graph_objs
label_desc: Use image node_id 1 for calling a global function with example usage: make_linear_colorscale(colors) and returns: unknown