class_docstr: Basic MONAILabel Client to invoke infer/train APIs over http/https
class_docstr_tok: ["Basic","MONAILabel","Client","to","invoke","infer\/train","APIs","over","http\/https"]
docstr: Run WSI Infer in case of Pathology App
  
  :param model: Name of Model
  :param image_id: Image Id
  :param body: Additional configs/json params as part of Infer request
  :param output: Output File format (dsa|asap|json)
  :param session_id: Session ID (use existing session id instead of image_id)
  :return: response_file (None), response_body
docstr_tok: ["Run","WSI","Infer","in","case","of","Pathology","App",":","param","model",":","Name","of","Model",":","param","image_id",":","Image","Id",":","param","body",":","Additional","configs\/json","params","as","part","of","Infer","request",":","param","output",":","Output","File","format","(","dsa|asap|json",")",":","param","session_id",":","Session","ID","(","use","existing","session","id","instead","of","image_id",")",":","return",":","response_file","(","None",")",",","response_body"]
code: def wsi_infer(
      self, model, image_id, body=None, output="dsa", session_id=None
  ):
      """
      Run WSI Infer in case of Pathology App
  
      :param model: Name of Model
      :param image_id: Image Id
      :param body: Additional configs/json params as part of Infer request
      :param output: Output File format (dsa|asap|json)
      :param session_id: Session ID (use existing session id instead of image_id)
      :return: response_file (None), response_body
      """
      selector = "/infer/wsi/{}?image={}".format(
          MONAILabelUtils.urllib_quote_plus(model),
          MONAILabelUtils.urllib_quote_plus(image_id),
      )
      if session_id:
          selector += f"&session_id={MONAILabelUtils.urllib_quote_plus(session_id)}"
      if output:
          selector += (
              f"&output={MONAILabelUtils.urllib_quote_plus(output)}"
          )
  
      body = self._update_client_id(body if body else {})
      status, form, _, _ = MONAILabelUtils.http_method(
          "POST", self._server_url, selector, body
      )
      if status != 200:
          raise MONAILabelClientException(
              MONAILabelError.SERVER_ERROR,
              f"Status: {status}; Response: {bytes_to_str(form)}",
          )
  
      return None, form
  
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 19 for calling the MONAILabelClient obj's underlying member method code with example usage: obj.wsi_infer(model, image_id, body, output, session_id) and returns: None,  form