code: def http_method(method, server_url, selector, body=None):
      logging.debug(f"{method} {server_url}{selector}")
  
      parsed = urlparse(server_url)
      path = parsed.path.rstrip("/")
      selector = path + "/" + selector.lstrip("/")
      logging.debug(f"URI Path: {selector}")
  
      conn = http.client.HTTPConnection(parsed.hostname, parsed.port)
      headers = {}
      if body:
          if isinstance(body, dict):
              body = json.dumps(body)
              content_type = "application/json"
          else:
              content_type = "text/plain"
          headers = {
              "content-type": content_type,
              "content-length": str(len(body)),
          }
  
      conn.request(method, selector, body=body, headers=headers)
      return MONAILabelUtils.send_response(conn)
  
imports: import cgi
  import http.client
  import json
  import logging
  import mimetypes
  import os
  import tempfile
  from urllib.parse import quote_plus, urlparse
  import requests
label_desc: Use image node_id 1 for calling the MONAILabelUtils obj's underlying member method code with example usage: obj.http_method(method, server_url, selector, body) and returns: MONAILabelUtils