code: def get_color_name(value):
      
      if not is_known_type(value):
          return CUSTOM_TYPE_COLOR
      for typ, name in list(COLORS.items()):
          if isinstance(value, typ):
              return name
      else:
          np_dtype = get_numpy_dtype(value)
          if np_dtype is None or not hasattr(value, 'size'):
              return UNSUPPORTED_COLOR
          elif value.size == 1:
              return SCALAR_COLOR
          else:
              return ARRAY_COLOR
docs: Return color name depending on value type