code: def __init__(self, name: str, path: str = None, logger=None):
      if logger is not None:
          self._logger = logger
      else:
          self._logger = logs.get_logger("LocalQueue")
          self._logger.setLevel(get_storage_verbose_level())
  
      self.name = name
      if path is None:
          self.path = self._get_queue_directory()
      else:
          self.path = path
      self.path = os.path.join(self.path, name)
      os.makedirs(self.path, exist_ok=True)
  
      # Local queue is considered active, iff its directory exists.
      self._lock_path = os.path.join(self.path, LOCK_FILE_NAME)
      self._lock = filelock.SoftFileLock(self._lock_path)
  
imports: import os
  import uuid
  import time
  import filelock
  from studio.artifacts.artifacts_tracker import get_studio_home
  from studio.storage.storage_setup import get_storage_verbose_level
  from studio.util import logs
  from studio.util.util import check_for_kb_interrupt, rm_rf
label_desc: Use image node_id 1 to create a new LocalQueue object  with example: obj = LocalQueue(name, path, logger)