code: def __convert_nifti_to_dcmseg(
      self, series_dir, nii_seg_path, model_name, label_names
  ) -> str:
      label_info = []
      for i, lb in enumerate(label_names):
          label_info.append(
              {
                  "model_name": model_name,
                  "name": str(i + 1) + "_" + lb,
                  "description": "lb" + str(i + 1) + "_" + lb,
              }
          )
      dcmSegFile = nifti_to_dicom_seg(
          series_dir=series_dir,
          label=nii_seg_path,
          label_info=label_info,
      )
      logging.info(f" converted nifti to dicom seg --- at {dcmSegFile}")
      return dcmSegFile
  
imports: import io
  import logging
  import os
  import pathlib
  import shutil
  import time
  from typing import Any, Dict, List, Optional
  from urllib.parse import quote_plus
  from xml.etree import ElementTree
  import requests
  from requests.auth import HTTPBasicAuth
  from monailabel.datastore.utils.convert import nifti_to_dicom_seg
  from monailabel.interfaces.datastore import Datastore
  from monailabel.utils.others.generic import md5_digest
label_desc: Use image node_id 21 for calling the XNATDatastore obj's underlying member method code with example usage: obj.__convert_nifti_to_dcmseg(series_dir, nii_seg_path, model_name, label_names) and returns: dcmSegFile