code: def http_multipart(
      method, server_url, selector, fields, files, headers={}
  ):
      logging.debug(f"{method} {server_url}{selector}")
  
      content_type, body = MONAILabelUtils.encode_multipart_formdata(
          fields, files
      )
      headers = headers if headers else {}
      headers.update(
          {
              "content-type": content_type,
              "content-length": str(len(body)),
          }
      )
  
      parsed = urlparse(server_url)
      path = parsed.path.rstrip("/")
      selector = path + "/" + selector.lstrip("/")
      logging.debug(f"URI Path: {selector}")
  
      if parsed.scheme == "https":
          logger.debug("Using HTTPS mode")
          # noinspection PyProtectedMember
          conn = http.client.HTTPSConnection(
              parsed.hostname,
              parsed.port,
              context=ssl._create_unverified_context(),
          )
      else:
          conn = http.client.HTTPConnection(
              parsed.hostname, parsed.port
          )
  
      conn.request(method, selector, body, headers)
      return MONAILabelUtils.send_response(conn, content_type)
  
imports: import cgi
  import http.client
  import json
  import logging
  import mimetypes
  import os
  import re
  import ssl
  import tempfile
  from pathlib import Path
  from urllib.parse import quote_plus, unquote, urlencode, urlparse
  import requests
label_desc: Use image node_id 3 for calling the MONAILabelUtils obj's underlying member method code with example usage: obj.http_multipart(method, server_url, selector, fields, files, headers) and returns: MONAILabelUtils