class_docstr: Storage that stores files in amazon s3
      
class_docstr_tok: ["Storage","that","stores","files","in","amazon","s3"]
code: def get(self, local_name, base_dir):
      remote_name = local_name
      remote_ziped_name = f"{remote_name}.tar.gz"
      local_ziped_name = f"{local_name}.tar.gz"
      local_ziped_path = os.path.join(base_dir, local_ziped_name)
  
      folder_path = Path(base_dir) / local_name
      with FileLock(folder_path, mode="r"):
          local_last_modified = self._get_local_last_modified(
              base_dir, local_name
          )
          remote_last_modified = self._get_remote_last_modified(
              remote_ziped_name
          )
          if (
              local_last_modified is not None
              and local_last_modified == remote_last_modified
          ):
              return
  
      with FileLock(folder_path, mode="w"):
          self._download(
              base_dir,
              remote_ziped_name,
              local_ziped_path,
              last_modified=remote_last_modified,
          )
  
imports: import os
  import io
  import shutil
  import tarfile
  import hashlib
  from pathlib import Path
  from abc import ABC, abstractmethod
  from typing import Union, Optional
  from dataclasses import dataclass
  from datetime import datetime
  import threading
  import psutil
  from checksumdir import dirhash
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
  import mindsdb.utilities.profiler
  from mindsdb.utilities import log
label_desc: Use image node_id 6 for calling the S3FSStore obj's underlying member method code with example usage: obj.get(local_name, base_dir) without return types