code: def __init__(
      self, config, measure_timestamp_diff=False, compression=None
  ):
      self.logger = logs.get_logger(self.__class__.__name__)
      self.logger.setLevel(get_storage_verbose_level())
  
      if compression is None:
          compression = config.get("compression", None)
  
      self.endpoint = config.get("endpoint", "~")
      self.endpoint = os.path.realpath(
          os.path.expanduser(self.endpoint)
      )
      if not os.path.exists(self.endpoint) or not os.path.isdir(
          self.endpoint
      ):
          msg: str = "Store root {0} doesn't exist or not a directory. Aborting.".format(
              self.endpoint
          )
          self._report_fatal(msg)
  
      self.bucket = config.get("bucket", "storage")
      self.store_root = os.path.join(self.endpoint, self.bucket)
      self._ensure_path_dirs_exist(self.store_root)
  
      super().__init__(
          StorageType.storageLocal,
          self.logger,
          measure_timestamp_diff,
          compression=compression,
      )
  
imports: import os
  import shutil
  from typing import Dict
  from studio.storage.storage_setup import get_storage_verbose_level
  from studio.storage.storage_type import StorageType
  from studio.storage.storage_handler import StorageHandler
  from studio.util import logs
  from studio.util import util
label_desc: Use image node_id 1 to create a new LocalStorageHandler object from inherited base classes: StorageHandler with example: obj = LocalStorageHandler(config, measure_timestamp_diff, compression)