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 Train Task
  
  :param model: Name of Model
  :param params: Additional configs/json params as part of Train request
  :return: json response
docstr_tok: ["Run","Train","Task",":","param","model",":","Name","of","Model",":","param","params",":","Additional","configs\/json","params","as","part","of","Train","request",":","return",":","json","response"]
code: def train_start(self, model, params):
      """
      Run Train Task
  
      :param model: Name of Model
      :param params: Additional configs/json params as part of Train request
      :return: json response
      """
      params = self._update_client_id(params)
  
      selector = "/train/"
      if model:
          selector += MONAILabelUtils.urllib_quote_plus(model)
  
      status, response, _, _ = MONAILabelUtils.http_method(
          "POST",
          self._server_url,
          selector,
          params,
          headers=self._headers,
      )
      if status != 200:
          raise MONAILabelClientException(
              MONAILabelError.SERVER_ERROR,
              f"Status: {status}; Response: {bytes_to_str(response)}",
          )
  
      response = bytes_to_str(response)
      logging.debug(f"Response: {response}")
      return json.loads(response)
  
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 20 for calling the MONAILabelClient obj's underlying member method code with example usage: obj.train_start(model, params) and returns: json