code: def highlight(self, activation, text):
      activation = activation.detach().cpu().numpy()
  
      step_size = (max(activation) - min(activation)) / len(
          self.color_map
      )
  
      lookup = numpy.array(
          list(
              numpy.arange(min(activation), max(activation), step_size)
          )
      )
  
      colors = []
  
      for _i, act in enumerate(activation):
          try:
              colors.append(
                  self.color_map[numpy.where(act > lookup)[0][-1]]
              )
          except IndexError:
              colors.append(len(self.color_map) - 1)
  
      str_ = "<br><br>"
  
      for i, (char, color) in enumerate(zip(list(text), colors)):
          str_ += self._render(char, color)
  
          if i % 100 == 0 and i > 0:
              str_ += "<br>"
  
      return str_
  
imports: import numpy
label_desc: Use image node_id 2 for calling the Highlighter obj's underlying member method code with example usage: obj.highlight(activation, text) and returns: str_