code: def saveLabel(
      self, imageId: str, labelDirectory: str, tag: str, params: dict
  ):
      if params is not None:
          embeddedParams = self.embeddedLabelContentInParams(params)
      logging.info(
          f"{self.getCurrentTime()}: Label and Meta data (image id: '{imageId}'): '{embeddedParams}'"
      )
  
      url = f"{self.serverUrl}/datastore/label?image={imageId}"
      if tag:
          url += f"&tag={tag}"
  
      try:
          with open(os.path.abspath(labelDirectory), "rb") as f:
              response = requests.put(
                  url,
                  data=embeddedParams,
                  files={"label": (imageId + ".nrrd", f)},
              )
  
      except Exception as exception:
          logging.error(
              "{}: Label and Meta data update failed (image id: '{}', meta data: '{}', due to '{}'".format(
                  self.getCurrentTime(),
                  imageId,
                  embeddedParams,
                  exception,
              )
          )
  
      if response.status_code == 200:
          logging.info(
              f"{self.getCurrentTime()}: Label and Meta data was updated successfully (image id: '{imageId}')."
          )
          logging.warn(
              f"{self.getCurrentTime()}: Meta : '{embeddedParams}'"
          )
      else:
          logging.warn(
              "{}: Update label (image id: '{}') failed due to response code = {}) ".format(
                  self.getCurrentTime(), imageId, response.status_code
              )
          )
      return response.status_code
  
file_path: MONAILabel/plugins/slicer/MONAILabelReviewer/MONAILabelReviewerLib/MonaiServerREST.py
imports: import datetime
  import json
  import logging
  import os
  from urllib.parse import quote_plus
  import requests
  from requests.structures import CaseInsensitiveDict
label_desc: Use image node_id 10 for calling the MonaiServerREST obj's underlying member method code with example usage: obj.saveLabel(imageId, labelDirectory, tag, params) and returns: response