code: def text_list_to_colors_simple(names):
      """
      Generates a list of colors based on a list of names (strings).
      Similar strings correspond to similar colors.
      """
      uNames = list(set(names))
      uNames.sort()
      textToColor = [uNames.index(n) for n in names]
      textToColor = np.array(textToColor)
      textToColor = (
          255
          * (textToColor - textToColor.min())
          / (textToColor.max() - textToColor.min())
      )
      textmaps = generateColorMap()
      colors = [textmaps[int(c)] for c in textToColor]
      return colors
  
file_path: pyAudioAnalysis/pyAudioAnalysis/audioVisualization.py
imports: from __future__ import print_function
  import shutil, struct, simplejson
  from scipy.spatial import distance
  from pylab import *
  import ntpath
  import os
  from pyAudioAnalysis import MidTermFeatures
  from pyAudioAnalysis import audioTrainTest
  import sklearn
  import sklearn.discriminant_analysis
  import sys
  from sklearn.preprocessing import StandardScaler
  import plotly.express
label_desc: Use image node_id 4 for calling a global function with example usage: text_list_to_colors_simple(names) and returns: colors