code: def process_event(wall_time, step, string_ndarray, enable_markdown):
      """Convert a text event into a JSON-compatible response."""
      html = text_array_to_html(string_ndarray, enable_markdown)
      return {
          "wall_time": wall_time,
          "step": step,
          "text": html,
      }
  
imports: import textwrap
  import numpy
  from werkzeug import wrappers
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.text import metadata
label_desc: Use image node_id 5 for calling a global function with example usage: process_event(wall_time, step, string_ndarray, enable_markdown) and returns: dict