code: def http_upload(method, server_url, selector, fields, files):
      logging.debug(f"{method} {server_url}{selector}")
  
      url = server_url.rstrip("/") + "/" + selector.lstrip("/")
      logging.debug(f"URL: {url}")
  
      files = [
          ("files", (os.path.basename(f), open(f, "rb"))) for f in files
      ]
      response = (
          requests.post(url, files=files)
          if method == "POST"
          else requests.put(url, files=files, data=fields)
      )
      return response.status_code, response.text, None
  
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 2 for calling the MONAILabelUtils obj's underlying member method code with example usage: obj.http_upload(method, server_url, selector, fields, files) and returns: response,  response,  None