code: def interp(colors, N):
      def _interp(colors, N):
          try:
              return cl.interp(colors, N)
          except:
              return _interp(colors, N + 1)
  
      c = _interp(colors, N)
      return list(map(rgb_to_hex, cl.to_rgb(c)))
  
imports: import numpy
  import colorsys
  import colorlover
  import operator
  import copy
  from collections import deque
  from six import string_types
  from IPython.display import HTML, display
  from .utils import inverseDict
  from .auth import get_config_file
label_desc: Use image node_id 10 for calling a global function with example usage: interp(colors, N) and returns: list, cl, _interp