code: def generateColorMap():
      """
      This function generates a 256 jet colormap of HTML-like
      hex string colors (e.g. FF88AA)
      """
      Map = cm.jet(np.arange(256))
      stringColors = []
      for i in range(Map.shape[0]):
          rgb = (
              int(255 * Map[i][0]),
              int(255 * Map[i][1]),
              int(255 * Map[i][2]),
          )
          if sys.version_info > (3, 0):
              stringColors.append(
                  (struct.pack("BBB", *rgb).hex())
              )  # python 3
          else:
              stringColors.append(
                  struct.pack("BBB", *rgb).encode("hex")
              )  # python2
  
      return stringColors
  
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 1 for calling a global function with example usage: generateColorMap() and returns: stringColors