code: def _error_response(request, error_message):
      return http_util.Respond(
          request,
          {"error": error_message},
          "application/json",
          code=400,
      )
  
imports: import threading
  from werkzeug import wrappers
  from tensorboard import errors
  from tensorboard import plugin_util
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.debugger_v2 import debug_data_provider
  from tensorboard.backend import http_util
label_desc: Use image node_id 1 for calling a global function with example usage: _error_response(request, error_message) and returns: http_util