code: def colorize_invoke_command(self, string):
          
  
          final_string = string
  
          try:
  
              # Line headers
              try:
                  for token in ['START', 'END', 'REPORT', '[DEBUG]']:
                      if token in final_string:
                          format_string = '[{}]'
                          # match whole words only
                          pattern = r'\b{}\b'
                          if token == '[DEBUG]':
                              format_string = '{}'
                              pattern = re.escape(token)
                          repl = click.style(
                              format_string.format(token),
                              bold=True,
                              fg='cyan'
                          )
                          final_string = re.sub(
                              pattern.format(token), repl, final_string
                          )
              except Exception: # pragma: no cover
                  pass
  
              # Green bold Tokens
              try:
                  for token in [
                      'Zappa Event:',
                      'RequestId:',
                      'Version:',
                      'Duration:',
                      'Billed',
                      'Memory Size:',
                      'Max Memory Used:'
                  ]:
                      if token in final_string:
                          final_string = final_string.replace(token, click.style(
                              token,
                              bold=True,
                              fg='green'
                          ))
              except Exception: # pragma: no cover
                  pass
  
              # UUIDs
              for token in final_string.replace('\t', ' ').split(' '):
                  try:
                      if token.count('-') is 4 and token.replace('-', '').isalnum():
                          final_string = final_string.replace(
                              token,
                              click.style(token, fg='magenta')
                          )
                  except Exception: # pragma: no cover
                      pass
  
              return final_string
          except Exception:
              return string
docs: Apply various heuristics to return a colorized version the invoke
          command string. If these fail, simply return the string in plaintext.
  
          Inspired by colorize_log_entry().