code: def start_server_init_settings(self, args):
      # namespace('conf': [['key1','value1'],['key2','value2']])
      conf = {c[0]: c[1] for c in args.conf} if args.conf else {}
  
      settings.MONAI_LABEL_SERVER_PORT = args.port
      settings.MONAI_LABEL_APP_DIR = args.app
      settings.MONAI_LABEL_STUDIES = args.studies
      settings.MONAI_LABEL_APP_CONF = conf
  
      dirs = ["model", "lib", "logs", "bin"]
      for d in dirs:
          d = os.path.join(args.app, d)
          if not os.path.exists(d):
              os.makedirs(d)
  
      os.environ["PATH"] += os.pathsep + os.path.join(args.app, "bin")
      os.environ["PYTHONPATH"] = (
          os.environ.get("PYTHONPATH", "")
          + os.pathsep
          + os.path.join(args.app)
      )
  
      if args.dryrun:
          export_key = (
              "set " if any(platform.win32_ver()) else "export "
          )
          with open(
              "env.bat" if any(platform.win32_ver()) else ".env", "w"
          ) as f:
              for k, v in settings.dict().items():
                  v = (
                      f"'{json.dumps(v)}'"
                      if isinstance(v, list) or isinstance(v, dict)
                      else v
                  )
                  e = f"{export_key}{k}={v}"
                  f.write(e)
                  f.write(os.linesep)
                  logger.debug(e)
  
              py_path = [
                  os.environ.get("PYTHONPATH", "").rstrip(os.pathsep),
                  args.app,
                  os.path.join(args.app, "lib"),
              ]
              py_path = [p for p in py_path if p]
              others = [
                  f"{export_key}PYTHONPATH={os.pathsep.join(py_path)}",
                  f"{export_key}PATH={os.environ['PATH']}",
              ]
              for o in others:
                  f.write(o)
                  f.write(os.linesep)
                  logger.info(o)
      else:
          logger.debug("")
          logger.debug(
              "**********************************************************"
          )
          logger.debug(
              "                  ENV VARIABLES/SETTINGS                  "
          )
          logger.debug(
              "**********************************************************"
          )
          for k, v in settings.dict().items():
              if isinstance(v, list) or isinstance(v, dict):
                  v = json.dumps(v)
              elif v is not None:
                  v = str(v)
              else:
                  v = None
              logger.debug(
                  f"{'set' if any(platform.win32_ver()) else 'export'} {k}={v}"
              )
              if v is not None:
                  os.environ[k] = v
          logger.debug(
              "**********************************************************"
          )
          logger.debug("")
  
imports: import argparse
  import json
  import logging
  import os
  import pathlib
  import platform
  import shutil
  import sys
  import uvicorn
  from monailabel import print_config
  from monailabel.config import settings
  from monailabel.utils.others.generic import init_log_config
label_desc: Use image node_id 15 for calling the Main obj's underlying member method code with example usage: obj.start_server_init_settings(args) without return types