code: def test_saveLabel(cls):
      client = MockServerFriendlyClient(cls.MOCK_SERVER_URL)
      urlToBeTested = "{}/datastore/label?image={}&tag={}".format(
          cls.MOCK_SERVER_URL, 6662775, "version_1"
      )
      body = {
          "params": {
              "label_info": [
                  {"name": "Lung", "idx": 1},
                  {"name": "Heart", "idx": 2},
                  {"name": "Trachea", "idx": 3},
                  {"name": "Mediastinum", "idx": 4},
                  {"name": "Clavicle", "idx": 5},
              ],
              "segmentationMeta": {
                  "status": "approved",
                  "approvedBy": "Approver",
                  "level": "hard",
                  "comment": "the_comment",
                  "editTime": 1660488836,
              },
          }
      }
  
      client.expect(
          request(
              method="PUT",
              path="/datastore/label",
              querystring={"image": "6662775", "tag": "version_1"},
              headers={"content-Type": "application/json"},
              body=json_equals(body),
          ),
          response(code=200),
          times(1),
      )
  
      result = requests.put(
          cls.MOCK_SERVER_URL + "/datastore/label",
          params={"image": "6662775", "tag": "version_1"},
          json=body,
          headers={"content-Type": "application/json"},
      )
  
      cls.assertEqual(200, result.status_code)
      cls.assertEqual(urlToBeTested, result.url)
      client.reset()
  
imports: import json
  import logging
  import os
  import sys
  import time
  import unittest
  import requests
  from mockserver_friendly import MockServerFriendlyClient, json_equals, request, response, times
  from python_on_whales import docker
  from MONAILabelReviewerLib.MonaiServerREST import MonaiServerREST
label_desc: Use image node_id 7 for calling the MonaiServerRESTTest obj's underlying member method code with example usage: obj.test_saveLabel(cls) without return types