code: def __init__(
      self,
      loglevel=logging.INFO,
      actions=("start_server", "apps", "datasets", "plugins"),
  ):
      self.actions = set(
          [actions] if isinstance(actions, str) else actions
      )
      logging.basicConfig(
          level=loglevel,
          format="[%(asctime)s] [%(process)s] [%(threadName)s] [%(levelname)s] (%(name)s:%(lineno)d) - %(message)s",
      )
  
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 1 to create a new Main object  with example: obj = Main(loglevel, actions)