code: def _write(self, status_code, content_type, content):
      self.send_response(status_code)
      if content:
          self.send_header("Content-Type", content_type)
          self.send_header("Content-Length", len(content))
      self.end_headers()
      if self.command != "HEAD":
          if status_code == 404 and content is None:
              self.wfile.write(str(status_code).encode("utf-8"))
          elif (status_code in (200, 404)) and content is not None:
              self.wfile.write(content)
  
imports: import errno
  import http.server
  import importlib.util
  import json
  import os
  import random
  import re
  import socket
  import socketserver
  import sys
  import threading
  import time
  import webbrowser
  import urllib.parse
label_desc: Use image node_id 4 for calling the _HTTPRequestHandler obj's underlying member method code with example usage: obj._write(status_code, content_type, content) without return types